summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c1e4d5)
raw | patch | inline | side by side (parent: 4c1e4d5)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 26 Mar 2007 08:53:47 +0000 (08:53 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 26 Mar 2007 08:53:47 +0000 (08:53 +0000) |
src/snapper.cpp | patch | blob | history |
diff --git a/src/snapper.cpp b/src/snapper.cpp
index 723213afe18643666fd611ca1994e6bb072e8f4b..3d5b33c167320b81161775ffa18b5d0495c839ee 100644 (file)
--- a/src/snapper.cpp
+++ b/src/snapper.cpp
#include "libnr/nr-values.h"
#include "sp-namedview.h"
+#include "inkscape.h"
+#include "desktop.h"
Inkscape::Snapper::PointType const Inkscape::Snapper::BBOX_POINT = 0x1;
Inkscape::Snapper::PointType const Inkscape::Snapper::SNAP_POINT = 0x2;
}
/**
- * \return Snap distance (desktop coordinates)
+ * \return Snap distance (desktop coordinates); depends on current zoom so that it's always the same in screen pixels
*/
NR::Coord Inkscape::Snapper::getDistance() const
{
- return _distance;
+ return _distance / SP_ACTIVE_DESKTOP->current_zoom();
}
/**