r14577 by fschmid - Don't scale hairlines when scaling groups.
scribus-commit
scribus-commit at lists.scribus.net
Mon Jan 25 22:35:22 CET 2010
Revision: 14577
Author: fschmid
Date: 2010-01-25T21:30:31.554338Z
Commit message: Don't scale hairlines when scaling groups.
Changeset:
M /trunk/Scribus/scribus/scribusdoc.cpp
Diffs:
Index: scribus/scribusdoc.cpp
===================================================================
--- scribus/scribusdoc.cpp (revision 14576)
+++ scribus/scribusdoc.cpp (revision 14577)
@@ -10389,7 +10389,10 @@
h -= g;
FPoint h1(h.x(), h.y(), 0, 0, 0, scx, scy);
if (bb->Groups.count() != 0) // change the LineWidth only when the item is within a real Group
- bb->setLineWidth(qMax(bb->lineWidth()*((scx+scy)/2), 0.01));
+ {
+ if (bb->lineWidth() != 0) // don't try to scale hairlines
+ bb->setLineWidth(qMax(bb->lineWidth()*((scx+scy)/2), 0.01));
+ }
if (bb->itemType() == PageItem::Line)
{
bb->setRotation(atan2(t1.y()-b1.y(),t1.x()-b1.x())*(180.0/M_PI));
More information about the scribus-commit
mailing list