diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc index fa262a28f94..d5916627082 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc @@ -8,6 +8,10 @@ #include <aconf.h> +#ifdef USE_GCC_PRAGMAS +#pragma implementation +#endif + #include "gmem.h" #include "gmempp.h" #include "GList.h" @@ -899,7 +903,7 @@ void TileMap::cvtDevToUser(int pg, int xd, int yd, double *xu, double *yu) { void TileMap::getWindowPageRange(int x, int y, int w, int h, int *firstPage, int *lastPage) { - GList *tiles2; + GList *tiles; PlacedTileDesc *tile; int i; @@ -909,9 +913,9 @@ void TileMap::getWindowPageRange(int x, int y, int w, int h, } *firstPage = state->getDoc()->getNumPages(); *lastPage = 0; - tiles2 = getTileList(); - for (i = 0; i < tiles2->getLength(); ++i) { - tile = (PlacedTileDesc *)tiles2->get(i); + tiles = getTileList(); + for (i = 0; i < tiles->getLength(); ++i) { + tile = (PlacedTileDesc *)tiles->get(i); if (tile->px < x + w && tile->px + tile->tw > x && tile->py < y + h && @@ -1348,7 +1352,7 @@ void TileMap::updatePageParams() { // rotate the page boxes if (page & 1) { otherPage = page + 1; - if (otherPage > state->getDoc()->getNumPages()) { + if (otherPage >= state->getDoc()->getNumPages()) { otherPage = page; } } else { |