diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-08-09 18:55:23 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-08-09 18:55:23 +0000 |
| commit | c3115995762ecfed8ebed035cf682c525a32dd0c (patch) | |
| tree | c959648001273acf4f0e70bcca8ffdbe36fc438f /src/sp-star.cpp | |
| parent | Massive performance improvment for basic node operations with thousands of nodes (diff) | |
| parent | Fix related to bug #1327267 -- don't bother to update gradient toolbar when n... (diff) | |
| download | inkscape-c3115995762ecfed8ebed035cf682c525a32dd0c.tar.gz inkscape-c3115995762ecfed8ebed035cf682c525a32dd0c.zip | |
Update to trunk r13504
(bzr r13341.1.125)
Diffstat (limited to 'src/sp-star.cpp')
| -rw-r--r-- | src/sp-star.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sp-star.cpp b/src/sp-star.cpp index 712029468..97a690520 100644 --- a/src/sp-star.cpp +++ b/src/sp-star.cpp @@ -513,12 +513,11 @@ void SPStar::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape:: } } -Geom::Affine SPStar::set_transform(Geom::Affine const &tform) +Geom::Affine SPStar::set_transform(Geom::Affine const &xform) { - Geom::Affine xform = (randomized == 0 ? tform.withoutTranslation() : tform); - + bool opt_trans = (randomized == 0); // Only set transform with proportional scaling - if (!xform.isUniformScale()) { + if (!xform.withoutTranslation().isUniformScale()) { return xform; } @@ -532,7 +531,7 @@ Geom::Affine SPStar::set_transform(Geom::Affine const &tform) /* This function takes care of translation and scaling, we return whatever parts we can't handle. */ - Geom::Affine ret(xform); + Geom::Affine ret(opt_trans ? xform.withoutTranslation() : xform); gdouble const s = hypot(ret[0], ret[1]); if (s > 1e-9) { ret[0] /= s; |
