Skip to content
Permalink
Browse files

Fix offset curve tool offsets curves in opposite direction to mouse

  • Loading branch information
nyalldawson committed Nov 27, 2017
1 parent 721551f commit 1d0db0b02b20d4833e3718572591b0bbbc1e3221
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 );
}
}

0 comments on commit 1d0db0b

Please sign in to comment.
You can’t perform that action at this time.