mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
Fix offset curve tool offsets curves in opposite direction to mouse
This commit is contained in:
parent
721551f8b6
commit
1d0db0b02b
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user