From dd72119e4e825e257378103055de69b55ad51f5a Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 4 Dec 2007 22:25:14 +0000 Subject: [PATCH] 3D grid: When snapping, consider both left and right vertical lines next to the point. (see rev 16610) --- src/display/canvas-axonomgrid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp index 76e081a72..091f414cf 100644 --- a/src/display/canvas-axonomgrid.cpp +++ b/src/display/canvas-axonomgrid.cpp @@ -627,10 +627,10 @@ CanvasAxonomGridSnapper::_getSnapLines(NR::Point const &p) const scaled_spacing /= SP_ACTIVE_DESKTOP->current_zoom(); } - NR::Coord const rounded = Inkscape::Util::round_to_nearest_multiple_plus(p[0], - scaled_spacing, - grid->origin[0]); - + NR::Coord rounded; + rounded = Inkscape::Util::round_to_nearest_multiple_plus(p[0], scaled_spacing, grid->origin[0]); + s.push_back(std::make_pair(NR::Dim2(0), rounded)); + rounded = Inkscape::Util::round_to_lower_multiple_plus(p[0], scaled_spacing, grid->origin[0]); s.push_back(std::make_pair(NR::Dim2(0), rounded)); return s; -- 2.30.2