From 1d0db0b02b20d4833e3718572591b0bbbc1e3221 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 28 Nov 2017 07:42:33 +1000 Subject: [PATCH] Fix offset curve tool offsets curves in opposite direction to mouse --- src/app/qgsmaptooloffsetcurve.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/qgsmaptooloffsetcurve.cpp b/src/app/qgsmaptooloffsetcurve.cpp index 9bc9195588b..bc91e8c311d 100644 --- a/src/app/qgsmaptooloffsetcurve.cpp +++ b/src/app/qgsmaptooloffsetcurve.cpp @@ -248,13 +248,13 @@ void QgsMapToolOffsetCurve::canvasMoveEvent( QgsMapMouseEvent *e ) if ( mDistanceWidget ) { // this will also set the rubber band - mDistanceWidget->setValue( leftOf < 0 ? offset : -offset ); + mDistanceWidget->setValue( leftOf < 0 ? -offset : offset ); mDistanceWidget->setFocus( Qt::TabFocusReason ); } else { //create offset geometry using geos - setOffsetForRubberBand( leftOf < 0 ? offset : -offset ); + setOffsetForRubberBand( leftOf < 0 ? -offset : offset ); } }