r21652 by jghali - #14418: Convert to > Outlines ignores Text Frame Horizonal/Vertical Flip

scribus-commit scribus-commit at lists.scribus.net
Wed Dec 14 23:02:59 UTC 2016


Author: jghali
Date: Wed Dec 14 23:02:59 2016
New Revision: 21652

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21652
Log:
#14418: Convert to > Outlines ignores Text Frame Horizonal/Vertical Flip

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21652&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Wed Dec 14 23:02:59 2016
@@ -3077,6 +3077,16 @@
 			QTransform transform;
 			if (m_item->isPathText())
 				transform = matrix();
+			if (m_item->imageFlippedH())
+			{
+				transform.translate(m_item->width(), 0);
+				transform.scale(-1, 1);
+			}
+			if (m_item->imageFlippedV())
+			{
+				transform.translate(0, m_item->height());
+				transform.scale(1, -1);
+			}
 			transform.translate(x(), y());
 			transform.translate(0, -(fontSize() * gl.scaleV));
 			transform.scale(gl.scaleH * fontSize() / 10.0, gl.scaleV * fontSize() / 10.0);
@@ -3114,6 +3124,16 @@
 			QTransform transform;
 			if (m_item->isPathText())
 				transform = matrix();
+			if (m_item->imageFlippedH())
+			{
+				transform.translate(m_item->width(), 0);
+				transform.scale(-1, 1);
+			}
+			if (m_item->imageFlippedV())
+			{
+				transform.translate(0, m_item->height());
+				transform.scale(1, -1);
+			}
 			transform.translate(x(), y());
 			transform.translate(0, -(fontSize() * gl.scaleV));
 			transform.scale(gl.scaleH * fontSize() / 10.0, gl.scaleV * fontSize() / 10.0);




More information about the scribus-commit mailing list