diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-13 17:05:21 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-13 17:05:21 +0000 |
| commit | 7b00e5ffe385b53d5b95ebfcc63b0dc54f892a3b (patch) | |
| tree | 9d1d189db1903a66496f26d8964e8713ee3d78d6 /src/live_effects/effect.cpp | |
| parent | Fixed bugs pointed by su_v. (diff) | |
| parent | Really add new text-decoration properties. (diff) | |
| download | inkscape-7b00e5ffe385b53d5b95ebfcc63b0dc54f892a3b.tar.gz inkscape-7b00e5ffe385b53d5b95ebfcc63b0dc54f892a3b.zip | |
update to trunk
(bzr r13682.1.7)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 37fd64539..eb649db62 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -413,12 +413,15 @@ bool Effect::isNodePointSelected(Geom::Point const &nodePoint) const { if (selectedNodesPoints.size() > 0) { + using Geom::X; + using Geom::Y; for (std::vector<Geom::Point>::const_iterator i = selectedNodesPoints.begin(); i != selectedNodesPoints.end(); ++i) { Geom::Point p = *i; - p[Geom::X] = Inkscape::Util::Quantity::convert(p[Geom::X], "px", *defaultUnit); - p[Geom::Y] = Inkscape::Util::Quantity::convert(p[Geom::Y], "px", *defaultUnit); - if (Geom::are_near(p, nodePoint, 0.01)) { + Geom::Affine transformCoordinate = sp_lpe_item->i2dt_affine(); + Geom::Point p2(nodePoint[X],nodePoint[Y]); + p2 *= transformCoordinate; + if (Geom::are_near(p, p2, 0.01)) { return true; } } |
