From a6f2609902125fe035cba64cc9431b0e83d9ab30 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Fri, 16 May 2008 21:53:27 +0000 Subject: Fix a regression in the snapper, caused by me. Sorry! (bzr r5680) --- src/seltrans.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/seltrans.cpp') diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 432b1e670..94baf12d7 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -1261,7 +1261,7 @@ gboolean Inkscape::SelTrans::centerRequest(NR::Point &pt, guint state) { SnapManager &m = _desktop->namedview->snap_manager; m.setup(_desktop); - m.freeSnap(Snapper::SNAPPOINT_NODE, pt); + m.freeSnapReturnByRef(Snapper::SNAPPOINT_NODE, pt); if (state & GDK_CONTROL_MASK) { if ( fabs(_point[NR::X] - pt[NR::X]) > fabs(_point[NR::Y] - pt[NR::Y]) ) { @@ -1369,7 +1369,7 @@ void Inkscape::SelTrans::moveTo(NR::Point const &xy, guint state) ** FIXME: this will snap to more than just the grid, nowadays. */ - m.freeSnap(Snapper::SNAPPOINT_NODE, dxy); + m.freeSnapReturnByRef(Snapper::SNAPPOINT_NODE, dxy); } else if (!shift) { @@ -1434,14 +1434,14 @@ void Inkscape::SelTrans::moveTo(NR::Point const &xy, guint state) } } - if (control) { - /* Ensure that the horizontal and vertical constraint has been applied */ - if (fabs(dxy[NR::X]) > fabs(dxy[NR::Y])) { - dxy[NR::Y] = 0; - } else { - dxy[NR::X] = 0; - } - } + //if (control) { + // /* Ensure that the horizontal and vertical constraint has been applied */ + // if (fabs(dxy[NR::X]) > fabs(dxy[NR::Y])) { + // dxy[NR::Y] = 0; + // } else { + // dxy[NR::X] = 0; + // } + //} NR::Matrix const move((NR::translate(dxy))); NR::Point const norm(0, 0); -- cgit v1.2.3