From 2c7b2ee4332cdb1a2ed39139f58739be0c9f2ca4 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 1 Jul 2007 01:55:00 +0200 Subject: [PATCH] Handle second-page spreads in two-page mode differently. --- src/comicmain.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/comicmain.cpp b/src/comicmain.cpp index 4dc7ac1..343efdc 100644 --- a/src/comicmain.cpp +++ b/src/comicmain.cpp @@ -806,12 +806,29 @@ void ComicMainWindow::jumpToPage(int n, bool force) } // Ignore spreads as second pages + // Showing the next page or not showing any page + // should be an option because some sinks have the spread + // between the left and right page, while others have the + // spread but not the single pages, and there is no way simple way + // to autodetect it. + + // For the moment we just use the "stop at spread" +#if 0 + // Skip spreads: while (result2 == 0 && img2->getFormat() == SPREAD_FORMAT) { delete img2; img2 = sink->getImage(currpage + (++page_off), result2); spreading = true; } +#else + // Stop at spreads: + if (result2 == 0 && img2->getFormat() == SPREAD_FORMAT) + { + result2 = 1; + spreading = true; + } +#endif if (result2 == 0) { -- 2.32.0.93.g670b81a890