Code

Make PointParam handles snap, too
authorcilix42 <cilix42@users.sourceforge.net>
Fri, 1 Aug 2008 17:40:33 +0000 (17:40 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Fri, 1 Aug 2008 17:40:33 +0000 (17:40 +0000)
src/live_effects/parameter/point.cpp

index 8b47b887f5f06c3bcef8717a0b4849dc4ded8eb5..0cb57993e6926358fc11cc3bb9bf00d16b89c36d 100644 (file)
@@ -149,7 +149,8 @@ private:
 void
 PointParamKnotHolderEntity::knot_set(NR::Point const &p, NR::Point const &/*origin*/, guint /*state*/)
 {
-    pparam->param_setValue(p.to_2geom());
+    NR::Point const s = snap_knot_position(p);
+    pparam->param_setValue(s.to_2geom());
     sp_lpe_item_update_patheffect(SP_LPE_ITEM(item), false, false);
 }