Skip to content
Permalink
Browse files

Update CRS cache when deleting a custom CRS

  • Loading branch information
leyan committed Jun 15, 2013
1 parent fec833f commit 3bcf890dba6dd155029bb58847891c86de1474d4
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 3bcf890

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