r21285 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Thu May 5 21:59:30 UTC 2016


Author: jghali
Date: Thu May  5 21:59:30 2016
New Revision: 21285

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21285
Log:
r21279 follow-up, fix incorrect outline being drawn for line objects

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21285&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode.cpp	Thu May  5 21:59:30 2016
@@ -623,7 +623,10 @@
 						p->setRenderHint(QPainter::Antialiasing);
 						p->rotate(currItem->rotation());
 					}
-					p->translate(-currItem->visualLineWidth() / 2.0, -currItem->visualLineWidth() / 2.0);
+					if (currItem->isLine())
+						p->translate(0, -currItem->visualLineWidth() / 2.0);
+					else
+						p->translate(-currItem->visualLineWidth() / 2.0, -currItem->visualLineWidth() / 2.0);
 					p->scale(scalex, scaley);
 					p->drawRect(QRectF(0.0, 0.0, currItem->visualWidth(), currItem->visualHeight()));
 					p->restore();




More information about the scribus-commit mailing list