r23959 by jghali - #16196: Cursor blinking not mirrored for horizontally flipped text frames

scribus-commit scribus-commit at lists.scribus.net
Wed Jul 29 15:08:28 UTC 2020


Author: jghali
Date: Wed Jul 29 15:08:28 2020
New Revision: 23959

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23959
Log:
#16196: Cursor blinking not mirrored for horizontally flipped text frames

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23959&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode.cpp	Wed Jul 29 15:08:28 2020
@@ -869,6 +869,16 @@
 
 	p->save();
 	p->setTransform(textframe->getTransform(), true);
+	if (textframe->imageFlippedH())
+	{
+		p->translate(textframe->width(), 0);
+		p->scale(-1, 1);
+	}
+	if (textframe->imageFlippedV())
+	{
+		p->translate(0, textframe->height());
+		p->scale(1, -1);
+	}
 	p->setPen(cPen);
 	p->setRenderHint(QPainter::Antialiasing, true);
 	p->drawLine(cursor.translated(offset));




More information about the scribus-commit mailing list