r19014 by fschmid - Fixed Bug #12106: Preview on Canvas of rotated and grouped elements does not correspond to the elements

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 6 09:08:40 UTC 2014


Author: fschmid
Date: Sun Apr  6 09:08:40 2014
New Revision: 19014

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19014
Log:
Fixed Bug #12106: Preview on Canvas of rotated and grouped elements does not correspond to the elements

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19014&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp (original)
+++ trunk/Scribus/scribus/canvasmode.cpp Sun Apr  6 09:08:40 2014
@@ -569,6 +569,11 @@
 							p->save();
 							currItem = gItem->groupItemList.at(cg);
 							p->translate(currItem->gXpos, currItem->gYpos);
+							if (currItem->rotation() != 0)
+							{
+								p->setRenderHint(QPainter::Antialiasing);
+								p->rotate(currItem->rotation());
+							}
 							currItem->DrawPolyL(p, currItem->Clip);
 							p->restore();
 						}




More information about the scribus-commit mailing list