From 21f04a292dafc2cfd1374609720c458124c5b9a4 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 12 Jun 2008 20:20:51 +0000 Subject: change NR::Matrix to Geom:: for many sp_item_xxx_affine functions (bzr r5915) --- src/live_effects/parameter/pointparam-knotholder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/live_effects/parameter/pointparam-knotholder.cpp') diff --git a/src/live_effects/parameter/pointparam-knotholder.cpp b/src/live_effects/parameter/pointparam-knotholder.cpp index f59b2f7eb..651054120 100644 --- a/src/live_effects/parameter/pointparam-knotholder.cpp +++ b/src/live_effects/parameter/pointparam-knotholder.cpp @@ -91,7 +91,7 @@ PointParamKnotHolder::add_knot ( entity.push_back(e); // Move to current point. - NR::Point dp = p * sp_item_i2d_affine(item); + NR::Point dp = p * from_2geom(sp_item_i2d_affine(item)); sp_knot_set_position(e->knot, &dp, SP_KNOT_STATE_NORMAL); e->handler_id = g_signal_connect(e->knot, "moved", G_CALLBACK(pointparam_knot_moved_handler), this); @@ -112,7 +112,7 @@ static void pointparam_knot_clicked_handler(SPKnot */*knot*/, guint /*state*/, P */ static void pointparam_knot_moved_handler(SPKnot */*knot*/, NR::Point const *p, guint /*state*/, PointParamKnotHolder *kh) { - NR::Matrix const i2d(sp_item_i2d_affine(kh->item)); + NR::Matrix const i2d(from_2geom(sp_item_i2d_affine(kh->item))); NR::Point pos = (*p) / i2d; Inkscape::SVGOStringStream os; @@ -123,7 +123,7 @@ static void pointparam_knot_moved_handler(SPKnot */*knot*/, NR::Point const *p, static void pointparam_knot_ungrabbed_handler(SPKnot *knot, unsigned int /*state*/, PointParamKnotHolder *kh) { - NR::Matrix const i2d(sp_item_i2d_affine(kh->item)); + NR::Matrix const i2d(from_2geom(sp_item_i2d_affine(kh->item))); NR::Point pos = sp_knot_position(knot) / i2d; Inkscape::SVGOStringStream os; -- cgit v1.2.3