diff options
Diffstat (limited to 'src/snapped-point.cpp')
| -rw-r--r-- | src/snapped-point.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/snapped-point.cpp b/src/snapped-point.cpp index 4e5ca836d..02f7ed165 100644 --- a/src/snapped-point.cpp +++ b/src/snapped-point.cpp @@ -80,9 +80,13 @@ bool Inkscape::SnappedPoint::getSecondAlwaysSnap() const } -NR::Point Inkscape::SnappedPoint::getPoint() const +void Inkscape::SnappedPoint::getPoint(NR::Point &p) const { - return _point; + // When we have snapped + if (getSnapped()) { + // then return the snapped point by overwriting p + p = _point; + } //otherwise p will be left untouched; this way the caller doesn't have to check wether we've snapped } // search for the closest snapped point |
