[poppler] utils/pdftocairo.cc utils/pdftoppm.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 25 21:11:55 UTC 2020
utils/pdftocairo.cc | 4 ++--
utils/pdftoppm.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit afa0528e1dfaafeb09ad9fb52902b13b378e0250
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Feb 22 01:00:05 2020 +0100
pdftoppm/pdftocairo: Fix more odd/even mismatch
diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc
index db12a421..e6e282a5 100644
--- a/utils/pdftocairo.cc
+++ b/utils/pdftocairo.cc
@@ -1175,8 +1175,8 @@ int main(int argc, char *argv[]) {
// outputting a single page, ensure that even/odd page selection doesn't
// filter out that single page.
if (firstPage == lastPage &&
- ((printOnlyEven && firstPage % 2 == 0) ||
- (printOnlyOdd && firstPage % 2 == 1))) {
+ ((printOnlyEven && firstPage % 2 == 1) ||
+ (printOnlyOdd && firstPage % 2 == 0))) {
fprintf(stderr, "Invalid even/odd page selection, no pages match criteria.\n");
exit(99);
}
diff --git a/utils/pdftoppm.cc b/utils/pdftoppm.cc
index fb5a363a..7605276d 100644
--- a/utils/pdftoppm.cc
+++ b/utils/pdftoppm.cc
@@ -532,8 +532,8 @@ int main(int argc, char *argv[]) {
// outputting a single page, ensure that even/odd page selection doesn't
// filter out that single page.
if (firstPage == lastPage &&
- ((printOnlyEven && firstPage % 2 == 0) ||
- (printOnlyOdd && firstPage % 2 == 1))) {
+ ((printOnlyEven && firstPage % 2 == 1) ||
+ (printOnlyOdd && firstPage % 2 == 0))) {
fprintf(stderr, "Invalid even/odd page selection, no pages match criteria.\n");
goto err1;
}
More information about the poppler
mailing list