We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1e5a93b commit 9fcc130Copy full SHA for 9fcc130
src/gui/qgsmapcanvasannotationitem.cpp
@@ -57,7 +57,14 @@ void QgsMapCanvasAnnotationItem::updatePosition()
57
if ( mAnnotation->hasFixedMapPosition() )
58
{
59
QgsCoordinateTransform t( mAnnotation->mapPositionCrs(), mMapCanvas->mapSettings().destinationCrs() );
60
- setPos( toCanvasCoordinates( t.transform( mAnnotation->mapPosition() ) ) );
+ QgsPoint coord = mAnnotation->mapPosition();
61
+ try
62
+ {
63
+ coord = t.transform( coord );
64
+ }
65
+ catch ( QgsCsException& )
66
+ {}
67
+ setPos( toCanvasCoordinates( coord ) );
68
}
69
else
70
0 commit comments