summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55dd135)
raw | patch | inline | side by side (parent: 55dd135)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 23 Nov 2008 19:39:52 +0000 (19:39 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 23 Nov 2008 19:39:52 +0000 (19:39 +0000) |
src/snapper.cpp | patch | blob | history |
diff --git a/src/snapper.cpp b/src/snapper.cpp
index 79f30fa3ce4eb7bea27517b97f6eab8e2b5c66e6..3dd58737ee015678243bed32d672ed84c2e09c31 100644 (file)
--- a/src/snapper.cpp
+++ b/src/snapper.cpp
*/
Geom::Coord Inkscape::Snapper::getSnapperTolerance() const
{
- return _snapper_tolerance / SP_ACTIVE_DESKTOP->current_zoom();
+ SPDesktop const *dt = _snapmanager->getDesktop();
+ double const zoom = dt ? dt->current_zoom() : 1;
+ return _snapper_tolerance / zoom;
}
bool Inkscape::Snapper::getSnapperAlwaysSnap() const