summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2024-02-10 08:13:48 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2024-02-10 08:13:48 +0000
commit90a8327e9b036ece000905d54a316b792d891e0b (patch)
tree45536c0f5666955912b04bcd20c14a57aad31872 /Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc
parent0357cc55904fda095727bb30f07b68dbf3439f8e (diff)
revert (xpdf 4.05 to xpdf 4.04)
git-svn-id: svn://tug.org/texlive/trunk@69766 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc')
-rw-r--r--Build/source/libs/xpdf/xpdf-src/xpdf/TileMap.cc14
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 {