Skip to content

Commit

Permalink
Expand debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Nov 5, 2024
1 parent d2ae9c2 commit f77dff2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/3d/qgs3dmaptoolidentify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ void Qgs3DMapToolIdentify::mouseReleaseEvent( QMouseEvent *event )
{
mapCoordsCanvas2D = ct.transform( mapCoords );
}
catch ( QgsException &e )
catch ( QgsCsException &e )
{
Q_UNUSED( e )
QgsDebugError( QStringLiteral( "Caught exception %1" ).arg( e.what() ) );
QgsDebugError( QStringLiteral( "Could not transform identified coordinates to project crs: %1" ).arg( e.what() ) );
}

const QgsPoint pt( mapCoordsCanvas2D.x(), mapCoordsCanvas2D.y(), mapCoordsCanvas2D.z() );
Expand Down Expand Up @@ -166,10 +166,10 @@ void Qgs3DMapToolIdentify::mouseReleaseEvent( QMouseEvent *event )
const QgsPointXY mapPointSearchRadiusCanvas2D = ct.transform( mapPointSearchRadius );
searchRadiusCanvas2D = mapPointCanvas2D.distance( mapPointSearchRadiusCanvas2D );
}
catch ( QgsException &e )
catch ( QgsCsException &e )
{
Q_UNUSED( e )
QgsDebugError( QStringLiteral( "Caught exception %1" ).arg( e.what() ) );
QgsDebugError( QStringLiteral( "Could not transform identified coordinates to project crs: %1" ).arg( e.what() ) );
}

identifyTool2D->identifyAndShowResults( QgsGeometry::fromPointXY( mapPointCanvas2D ), searchRadiusCanvas2D );
Expand Down

0 comments on commit f77dff2

Please sign in to comment.