From 9a65bc6bb7c8da1dfa5b101579e52845c75848ef Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 31 Mar 2008 01:17:59 +0000 Subject: [FIX] Member variables now use m_ prefix [FIX] Lots of minor fixes git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@95 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/TilemapModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pokemodr/TilemapModel.cpp') diff --git a/pokemodr/TilemapModel.cpp b/pokemodr/TilemapModel.cpp index 683420cd..1e4e8ec5 100644 --- a/pokemodr/TilemapModel.cpp +++ b/pokemodr/TilemapModel.cpp @@ -54,7 +54,7 @@ QVariant TilemapModel::data(const QModelIndex& index, int role) const if (role == Qt::DisplayRole) { int idx = pokemod->getTileIndex(map->at(index.row(), index.column())); - if (idx != -1) + if (idx != INT_MAX) return ImageCache::open(pokemod->getTile(idx)->getPic()); } if (role == Qt::EditRole) @@ -62,7 +62,7 @@ QVariant TilemapModel::data(const QModelIndex& index, int role) const if (role == Qt::ToolTipRole) { int idx = pokemod->getTileIndex(map->at(index.row(), index.column())); - if (idx != -1) + if (idx != INT_MAX) return pokemod->getTile(idx)->getName(); } return QVariant(); -- cgit