r17473 by jghali - win32 printing : fix wrong item bounding box causing attempt to print an object multiple times

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 28 07:35:39 UTC 2012


Author: jghali
Date: Sat Apr 28 07:35:38 2012
New Revision: 17473

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17473
Log:
win32 printing : fix wrong item bounding box causing attempt to print an object multiple times

Modified:
    branches/Version14x/Scribus/scribus/scpageoutput.cpp

Modified: branches/Version14x/Scribus/scribus/scpageoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17473&path=/branches/Version14x/Scribus/scribus/scpageoutput.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scpageoutput.cpp (original)
+++ branches/Version14x/Scribus/scribus/scpageoutput.cpp Sat Apr 28 07:35:38 2012
@@ -286,8 +286,8 @@
 						groupStack.push(currItem->groupsLastItem);
 						continue;
 					}
-					QRect oldR(currItem->getRedrawBounding(1.0));
-					if (clip.intersects(oldR))
+					QRectF oldR(currItem->getBoundingRect().adjusted(0.0, 0.0, 1.0, 1.0));
+					if (clip.intersects(oldR.toRect()))
 					{
 						drawItem( currItem, painter, clip );
 						if ((currItem->asTextFrame()) && ((currItem->nextInChain() != 0) || (currItem->prevInChain() != 0)))
@@ -328,8 +328,8 @@
 						continue;
 					if (!currItem->isTableItem)
 						continue;
-					QRect oldR(currItem->getRedrawBounding(1.0));
-					if (clip.intersects(oldR))
+					QRectF oldR(currItem->getBoundingRect().adjusted(0.0, 0.0, 1.0, 1.0));
+					if (clip.intersects(oldR.toRect()))
 					{
 						painter->save();
 						painter->translate(currItem->xPos(), currItem->yPos());




More information about the scribus-commit mailing list