Commit afa0528e authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

pdftoppm/pdftocairo: Fix more odd/even mismatch

parent 90a14418
......@@ -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);
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment