summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-01-10 22:21:59 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-01-10 22:21:59 +0000
commit43e79a060f82609db18b84c7db1c60f638e2ac8c (patch)
tree7207ebfa250a6817ca6e020225049af2902cb732 /src/sp-shape.cpp
parentFixes rendering of feImage (using bitmaps) by preventing the error "Unable to... (diff)
downloadinkscape-43e79a060f82609db18b84c7db1c60f638e2ac8c.tar.gz
inkscape-43e79a060f82609db18b84c7db1c60f638e2ac8c.zip
Added a new toolbar with snapping controls
(bzr r7107)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index 9f025120e..ce73888ed 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -1074,7 +1074,7 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p, Inkscape::
Geom::Matrix const i2d (sp_item_i2d_affine (item));
for(Geom::PathVector::const_iterator path_it = pathv.begin(); path_it != pathv.end(); ++path_it) {
- *p = from_2geom(path_it->initialPoint() * i2d);
+ *p = path_it->initialPoint() * i2d;
Geom::Path::const_iterator curve_it1 = path_it->begin(); // incoming curve
Geom::Path::const_iterator curve_it2 = ++(path_it->begin()); // outgoing curve
@@ -1090,13 +1090,13 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p, Inkscape::
// Depending on the snapping preferences, either add only cusp nodes, or add add both cusp and smooth nodes
if (snapprefs->getSnapSmoothNodes() || nodetype == Geom::NODE_NONE || nodetype == Geom::NODE_CUSP) {
- *p = from_2geom(curve_it1->finalPoint() * i2d);
+ *p = curve_it1->finalPoint() * i2d;
}
// Consider midpoints of line segments for snapping
if (snapprefs->getSnapMidpoints()) {
- if (Geom::LineSegment const* line_segment = dynamic_cast<Geom::LineSegment const*>(&(*curve_it1))) {
- *p = from_2geom(Geom::middle_point(*line_segment) * i2d);
+ if (Geom::LineSegment const* line_segment = dynamic_cast<Geom::LineSegment const*>(&(*curve_it1))) {
+ *p = Geom::middle_point(*line_segment) * i2d;
}
}
@@ -1111,7 +1111,7 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p, Inkscape::
if (cs.size() > 0) { // There might be multiple intersections...
for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); i++) {
Geom::Point p_ix = (*path_it).pointAt((*i).ta);
- *p = from_2geom(p_ix * i2d);
+ *p = p_ix * i2d;
}
}
}