Skip to content

Commit

Permalink
Fix caching of coordinate transforms without authid strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 11, 2019
1 parent 6b5f1da commit e64b3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgscoordinatetransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ bool QgsCoordinateTransform::setFromCache( const QgsCoordinateReferenceSystem &s
return false;

sCacheLock.lockForRead();
const QList< QgsCoordinateTransform > values = sTransforms.values( qMakePair( src.authid(), dest.authid() ) );
const QList< QgsCoordinateTransform > values = sTransforms.values( qMakePair( sourceKey, destKey ) );
for ( auto valIt = values.constBegin(); valIt != values.constEnd(); ++valIt )
{
if ( ( *valIt ).sourceDatumTransformId() == srcDatumTransform &&
Expand Down

0 comments on commit e64b3f8

Please sign in to comment.