summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a05187e)
raw | patch | inline | side by side (parent: a05187e)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 12 Jan 2008 03:46:58 +0000 (03:46 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 12 Jan 2008 03:46:58 +0000 (03:46 +0000) |
src/shape-editor.cpp | patch | blob | history |
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index 7fa400092d286a7b3a6788f28386d33c5097d3ab..a2a9a86ebb38952f289c40dea12371aace0d548f 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
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) {