poppler/PSOutputDev.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 6b567565b7b9d591fbd7441592096960a303bd39 Author: Thomas Freitag <[email protected]> Date: Sat Jul 21 00:01:49 2012 +0200 Fix conversion to ps when having multiple strips Bug 51982 diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc index 540f74b..a01a4b3 100644 --- a/poppler/PSOutputDev.cc +++ b/poppler/PSOutputDev.cc @@ -3049,7 +3049,7 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/, double m0, m1, m2, m3, m4, m5; int nStripes, stripeH, stripeY; int c, w, h, x, y, comp, i; - int numComps; + int numComps, initialNumComps; #endif char hexBuf[32*2 + 2]; // 32 values X 2 chars/value + line ending + null Guchar digit; @@ -3132,6 +3132,7 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/, stripeH = (sliceH + nStripes - 1) / nStripes; // render the stripes + initialNumComps = numComps; for (stripeY = sliceY; stripeY < sliceH; stripeY += stripeH) { // rasterize a stripe @@ -3151,6 +3152,7 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/, // draw the rasterized image bitmap = splashOut->getBitmap(); + numComps = initialNumComps; w = bitmap->getWidth(); h = bitmap->getHeight(); writePS("gsave\n"); _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
