From: johanengelen Date: Tue, 4 Dec 2007 22:25:14 +0000 (+0000) Subject: 3D grid: When snapping, consider both left and right vertical lines next to the point... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dd72119e4e825e257378103055de69b55ad51f5a;p=inkscape.git 3D grid: When snapping, consider both left and right vertical lines next to the point. (see rev 16610) --- 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;