Skip to content
Permalink
Browse files

Avoid error box when mouse coordinate transform fails

  • Loading branch information
nyalldawson committed Feb 17, 2016
1 parent 87661a0 commit b6c2529375ae112c315cbf1be17fb947db558850
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/core/qgscoordinateutils.cpp
@@ -68,7 +68,14 @@ QString QgsCoordinateUtils::formatCoordinateForProject( const QgsPoint& point, c
{
// need to transform to geographic coordinates
QgsCoordinateTransform ct( destCrs, QgsCoordinateReferenceSystem( GEOSRID ) );
geo = ct.transform( point );
try
{
geo = ct.transform( point );
}
catch ( QgsCsException& )
{
return QString();
}
}

if ( format == "DM" )

0 comments on commit b6c2529

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