Skip to content

Commit

Permalink
Fix offset curve tool offsets curves in opposite direction to mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 27, 2017
1 parent 721551f commit 1d0db0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooloffsetcurve.cpp
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 1d0db0b

Please sign in to comment.