r19088 by jghali - #12045, first part: fix image frame editing when frame is flipped horizontally or vertically

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 25 18:56:22 UTC 2014


Author: jghali
Date: Fri Apr 25 18:56:21 2014
New Revision: 19088

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19088
Log:
#12045, first part: fix image frame editing when frame is flipped horizontally or vertically

Modified:
    trunk/Scribus/scribus/canvasmode_edit.cpp

Modified: trunk/Scribus/scribus/canvasmode_edit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19088&path=/trunk/Scribus/scribus/canvasmode_edit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_edit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_edit.cpp Fri Apr 25 18:56:21 2014
@@ -210,6 +210,16 @@
 			p->setPen(pp);
 			p->setBrush(QColor(0,0,255,10));
 			p->setRenderHint(QPainter::Antialiasing);
+			if (currItem->imageFlippedH())
+			{
+				p->translate(currItem->width(), 0);
+				p->scale(-1.0, 1.0);
+			}
+			if (currItem->imageFlippedV())
+			{
+				p->translate(0, currItem->height());
+				p->scale(1.0, -1.0);
+			}
 			p->translate(currItem->imageXOffset()*currItem->imageXScale(), currItem->imageYOffset()*currItem->imageYScale());
 			p->rotate(currItem->imageRotation());
 			p->drawRect(0, 0, currItem->OrigW*currItem->imageXScale(), currItem->OrigH*currItem->imageYScale());




More information about the scribus-commit mailing list