summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-01-12 03:46:58 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-01-12 03:46:58 +0000
commit5582cff1b48902d58af527c9dffb0f6a0ec3a6ee (patch)
tree08b0ddd75b0952f7b9ebef8ca84251fdd126098c /src/shape-editor.cpp
parentAllow conversion of all selected items to guides (for items other than rectan... (diff)
downloadinkscape-5582cff1b48902d58af527c9dffb0f6a0ec3a6ee.tar.gz
inkscape-5582cff1b48902d58af527c9dffb0f6a0ec3a6ee.zip
fix over_the_stroke for paths in transformed groups
(bzr r4468)
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 7fa400092..a2a9a86eb 100644
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
@@ -286,13 +286,12 @@ bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) {
delta = desktop->d2w(delta);
double stroke_tolerance =
- ( !SP_OBJECT_STYLE(item)->stroke.isNone() ?
- desktop->current_zoom() *
- SP_OBJECT_STYLE (item)->stroke_width.computed *
- sp_item_i2d_affine (item).expansion() * 0.5
+ (( !SP_OBJECT_STYLE(item)->stroke.isNone() ?
+ desktop->current_zoom() *
+ SP_OBJECT_STYLE (item)->stroke_width.computed * 0.5 *
+ sp_item_i2d_affine (item).expansion()
: 0.0)
- + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100); //(double) SP_EVENT_CONTEXT(nc)->tolerance;
-
+ + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100)) /sp_item_i2d_affine (item).expansion();
bool close = (NR::L2 (delta) < stroke_tolerance);
if (remember && close) {