diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-02-09 02:20:18 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-02-09 02:20:18 +0000 |
| commit | 81f88ca0856da56bdf426cd065ff0acd3414567f (patch) | |
| tree | c909cc475397273059093d0fc8157f26b83350c1 /src/ui/tool/path-manipulator.cpp | |
| parent | Translations. German translation update by uwesch. (diff) | |
| download | inkscape-81f88ca0856da56bdf426cd065ff0acd3414567f.tar.gz inkscape-81f88ca0856da56bdf426cd065ff0acd3414567f.zip | |
Fix multiple minor problems in the node tool
(bzr r9070)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 3a6b15f37..fd21970ee 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1331,7 +1331,7 @@ double PathManipulator::_getStrokeTolerance() * drag tolerance setting. */ Inkscape::Preferences *prefs = Inkscape::Preferences::get(); double ret = prefs->getIntLimited("/options/dragtolerance/value", 2, 0, 100); - if (_path && !SP_OBJECT_STYLE(_path)->stroke.isNone()) { + if (_path && SP_OBJECT_STYLE(_path) && !SP_OBJECT_STYLE(_path)->stroke.isNone()) { ret += SP_OBJECT_STYLE(_path)->stroke_width.computed * 0.5 * (_edit_transform * _i2d_transform).descrim() // scale to desktop coords * _desktop->current_zoom(); // == _d2w.descrim() - scale to window coords |
