r20180 by fschmid - Follow up to #13144, fixed text scaling when ungrouping
scribus-commit
scribus-commit at lists.scribus.net
Sat Jun 20 10:46:59 UTC 2015
Author: fschmid
Date: Sat Jun 20 10:46:58 2015
New Revision: 20180
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20180
Log:
Follow up to #13144, fixed text scaling when ungrouping
Modified:
trunk/Scribus/scribus/scribusdoc.cpp
Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20180&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Sat Jun 20 10:46:58 2015
@@ -15485,6 +15485,20 @@
item->PoLine.translate(0, item->height());
}
}
+ if (item->isTextFrame() || item->isPathText())
+ {
+ if (item->itemText.length() != 0)
+ {
+ for (int aa = 0; aa < item->itemText.length(); ++aa)
+ {
+ CharStyle fsStyle;
+ fsStyle.setFontSize(qMax(qRound(item->itemText.charStyle(aa).fontSize()*((grScXi+grScYi)/2)), 1));
+ item->itemText.applyCharStyle(aa, 1, fsStyle);
+ }
+ if (item->asPathText())
+ item->updatePolyClip();
+ }
+ }
item->setXYPos(nX, nY, true);
item->rotateBy(-gRot);
item->setLineWidth(item->lineWidth() * qMax(grScXi, grScYi));
More information about the scribus-commit
mailing list