r21279 by fschmid -

scribus-commit scribus-commit at lists.scribus.net
Tue May 3 18:45:22 UTC 2016


Author: fschmid
Date: Tue May  3 18:45:22 2016
New Revision: 21279

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21279
Log:
Fixed Bug #13919: Rotated line shows duplicated stacked line when previewed (while moving)

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21279&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode.cpp	Tue May  3 18:45:22 2016
@@ -598,7 +598,8 @@
 								p->setRenderHint(QPainter::Antialiasing);
 								p->rotate(currItem->rotation());
 							}
-							currItem->DrawPolyL(p, currItem->Clip);
+							p->drawPath(currItem->PoLine.toQPainterPath(false));
+						//	currItem->DrawPolyL(p, currItem->Clip);
 							p->restore();
 						}
 					}
@@ -613,13 +614,14 @@
 					p->save();
 					p->setBrush(m_brush["outline"]);
 					p->setPen(m_pen["outline"]);
-					p->translate(currItem->visualXPos(), currItem->visualYPos());
+					p->translate(currItem->xPos(), currItem->yPos());
 					p->translate(deltax, deltay);
 					if (currItem->rotation() != 0)
 					{
 						p->setRenderHint(QPainter::Antialiasing);
 						p->rotate(currItem->rotation());
 					}
+					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