Skip to content

Commit 23a7330

Browse files
committed
Fix page range in log message
The internal range is 0...(n-1), but for users a page range 1...n is more natural. Showing a range 0...n is wrong because it would imply n+1 pages. Change printed text from Loaded 72/72 pages (0-72) of document ... to Loaded 72/72 pages (1-72) of document ... Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent ead87a7 commit 23a7330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ccstruct/imagedata.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ bool DocumentData::ReCachePages() {
552552
pages_.truncate(0);
553553
} else {
554554
tprintf("Loaded %d/%d pages (%d-%d) of document %s\n", pages_.size(),
555-
loaded_pages, pages_offset_, pages_offset_ + pages_.size(),
555+
loaded_pages, pages_offset_ + 1, pages_offset_ + pages_.size(),
556556
document_name_.string());
557557
}
558558
set_total_pages(loaded_pages);

0 commit comments

Comments
 (0)