mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -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 )
|
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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user