Fix offset curve tool offsets curves in opposite direction to mouse

This commit is contained in:
Nyall Dawson 2017-11-28 07:42:33 +10:00
parent 721551f8b6
commit 1d0db0b02b

View File

@ -248,13 +248,13 @@ void QgsMapToolOffsetCurve::canvasMoveEvent( QgsMapMouseEvent *e )
if ( mDistanceWidget ) if ( mDistanceWidget )
{ {
// this will also set the rubber band // this will also set the rubber band
mDistanceWidget->setValue( leftOf < 0 ? offset : -offset ); mDistanceWidget->setValue( leftOf < 0 ? -offset : offset );
mDistanceWidget->setFocus( Qt::TabFocusReason ); mDistanceWidget->setFocus( Qt::TabFocusReason );
} }
else else
{ {
//create offset geometry using geos //create offset geometry using geos
setOffsetForRubberBand( leftOf < 0 ? offset : -offset ); setOffsetForRubberBand( leftOf < 0 ? -offset : offset );
} }
} }