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/shape-editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shape-editor.cpp') diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index 9cfa83af1..b975d3f79 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -298,7 +298,7 @@ bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) { //Translate click point into proper coord system this->curvepoint_doc = desktop->w2d(event_p); - this->curvepoint_doc *= sp_item_dt2i_affine(item); + this->curvepoint_doc *= from_2geom(sp_item_dt2i_affine(item)); sp_nodepath_ensure_livarot_path(this->nodepath); @@ -316,9 +316,9 @@ bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) { (( !SP_OBJECT_STYLE(item)->stroke.isNone() ? desktop->current_zoom() * SP_OBJECT_STYLE (item)->stroke_width.computed * 0.5 * - NR::expansion(sp_item_i2d_affine(item)) + NR::expansion(from_2geom(sp_item_i2d_affine(item))) : 0.0) - + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100)) /NR::expansion(sp_item_i2d_affine(item)); + + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100)) /NR::expansion(from_2geom(sp_item_i2d_affine(item))); bool close = (NR::L2 (delta) < stroke_tolerance); if (remember && close) { -- cgit v1.2.3