summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-12 20:20:51 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-12 20:20:51 +0000
commit21f04a292dafc2cfd1374609720c458124c5b9a4 (patch)
tree1a38adb5df88eb36bafb6d055b55faf6b0d69cba /src/shape-editor.cpp
parentupdate 2geom (diff)
downloadinkscape-21f04a292dafc2cfd1374609720c458124c5b9a4.tar.gz
inkscape-21f04a292dafc2cfd1374609720c458124c5b9a4.zip
change NR::Matrix to Geom:: for many sp_item_xxx_affine functions
(bzr r5915)
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp6
1 files changed, 3 insertions, 3 deletions
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) {