mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix invalid rubber band when digitising polygon and layer CRS
is not the same as map CRS (fix #14117)
This commit is contained in:
parent
7e90d5773f
commit
23fc3cf9cc
@ -302,7 +302,8 @@ void QgsMapToolCapture::cadCanvasMoveEvent( QgsMapMouseEvent * e )
|
||||
if ( mCaptureMode == CapturePolygon )
|
||||
mTempRubberBand->addPoint( *mRubberBand->getPoint( 0, 0 ), false );
|
||||
QgsPointV2 pt = mCaptureCurve.endPoint();
|
||||
mTempRubberBand->addPoint( QgsPoint( pt.x(), pt.y() ) );
|
||||
QgsPoint mapPt = toMapCoordinates( qobject_cast<QgsVectorLayer *>( mCanvas->currentLayer() ), QgsPoint( pt.x(), pt.y() ) );
|
||||
mTempRubberBand->addPoint( mapPt );
|
||||
mTempRubberBand->addPoint( point );
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user