File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -455,11 +455,13 @@ ProjData QgsCoordinateTransformPrivate::threadLocalProjData()
455
455
}
456
456
457
457
// transform may have either the source or destination CRS using swapped axis order. For QGIS, we ALWAYS need regular x/y axis order
458
- transform.reset ( proj_normalize_for_visualization ( context, transform.get () ) );
458
+ if ( transform )
459
+ transform.reset ( proj_normalize_for_visualization ( context, transform.get () ) );
459
460
if ( !transform )
460
461
{
461
462
const QString err = QObject::tr ( " Cannot normalize transform between %1 and %2" ).arg ( mSourceCRS .authid () )
462
463
.arg ( mDestCRS .authid () );
464
+ QgsMessageLog::logMessage ( err, QString (), Qgis::Critical );
463
465
}
464
466
}
465
467
proj_list_destroy ( ops );
You can’t perform that action at this time.
0 commit comments