r17132 by fschmid - Fixed text flow around objects when the option "Flow around Bounding Box" is used.

scribus-commit scribus-commit at lists.scribus.net
Wed Dec 28 09:52:23 UTC 2011


Author: fschmid
Date: Wed Dec 28 09:52:23 2011
New Revision: 17132

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17132
Log:
Fixed text flow around objects when the option "Flow around Bounding Box" is used.

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17132&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Wed Dec 28 09:52:23 2011
@@ -91,13 +91,8 @@
 	pp.rotate(docItem->rotation());
 	if (docItem->textFlowUsesBoundingBox())
 	{
-		QPolygon tcli(4);
 		QRectF bb = docItem->getVisualBoundingRect();
-		tcli.setPoint(0, QPoint(0,0));
-		tcli.setPoint(1, QPoint(qRound(bb.width()), 0));
-		tcli.setPoint(2, QPoint(qRound(bb.width()), qRound(bb.height())));
-		tcli.setPoint(3, QPoint(0, qRound(bb.height())));
-		res = QRegion(pp.map(tcli));
+		res = QRegion(bb.toRect());
 	}
 	else if ((docItem->textFlowUsesImageClipping()) && (docItem->imageClip.size() != 0))
 	{




More information about the scribus-commit mailing list