Skip to content
Permalink
Browse files

Merge pull request #661 from leyan/custom_CRS

Update CRS cache when deleting a custom CRS
  • Loading branch information
mhugent committed Jun 15, 2013
2 parents fb15725 + 3bcf890 commit 6199c2ca3950a882652317a753b2be1a47aac227
Showing with 8 additions and 0 deletions.
  1. +3 −0 src/app/qgscustomprojectiondialog.cpp
  2. +5 −0 src/core/qgscrscache.cpp
@@ -168,6 +168,9 @@ bool QgsCustomProjectionDialog::deleteCRS( QString id )
QgsDebugMsg( QString( "failed to remove CRS from database in custom projection dialog: %1 [%2]" ).arg( mySql ).arg( sqlite3_errmsg( myDatabase ) ) );
}
sqlite3_close( myDatabase );

QgsCRSCache::instance()->updateCRSCache( QString( "USER:%1" ).arg( id ) );

return myResult == SQLITE_OK;
}

@@ -106,6 +106,11 @@ void QgsCRSCache::updateCRSCache( const QString& authid )
{
mCRS.insert( authid, s );
}
else
{
mCRS.remove( authid );
}

QgsCoordinateTransformCache::instance()->invalidateCrs( authid );
}

0 comments on commit 6199c2c

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