r23970 by jghali - Fix ScribusDoc::textCanvasPosition() for horizontally or vertically flipped frames
scribus-commit
scribus-commit at lists.scribus.net
Sat Aug 1 08:15:49 UTC 2020
Author: jghali
Date: Sat Aug 1 08:15:49 2020
New Revision: 23970
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23970
Log:
Fix ScribusDoc::textCanvasPosition() for horizontally or vertically flipped frames
Modified:
trunk/Scribus/scribus/scribusdoc.cpp
Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23970&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Sat Aug 1 08:15:49 2020
@@ -15915,6 +15915,16 @@
QLineF charPos = charFrame->textLayout.positionToPoint(textPos);
QTransform itemTransform = charFrame->getTransform();
+ if (item->imageFlippedH())
+ {
+ itemTransform.translate(item->width(), 0);
+ itemTransform.scale(-1, 1);
+ }
+ if (item->imageFlippedV())
+ {
+ itemTransform.translate(0, item->height());
+ itemTransform.scale(1, -1);
+ }
canvasPos = itemTransform.map(QPointF(charPos.x1(), charPos.y1()));
return true;
More information about the scribus-commit
mailing list