r17474 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:36:00 UTC 2012


Author: jghali
Date: Sat Apr 28 07:36:00 2012
New Revision: 17474

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

Modified:
    trunk/Scribus/scribus/scpageoutput.cpp

Modified: trunk/Scribus/scribus/scpageoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17474&path=/trunk/Scribus/scribus/scpageoutput.cpp
==============================================================================
--- trunk/Scribus/scribus/scpageoutput.cpp (original)
+++ trunk/Scribus/scribus/scpageoutput.cpp Sat Apr 28 07:36:00 2012
@@ -139,8 +139,8 @@
 		}
 		/*if (evSpon)
 			currItem->Dirty = true;*/
-		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()))
 		{
 			// relayout necessary to get page number ok
 			currItem->invalidateLayout();
@@ -179,8 +179,8 @@
 			if (currItem->OnMasterPage != page->pageName())
 				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 );
 		}




More information about the scribus-commit mailing list