Skip to content

Commit

Permalink
forgot that this is not 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmizuno committed Jan 8, 2018
1 parent 3c82c09 commit 06380c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsbookmarks.cpp
Expand Up @@ -397,9 +397,9 @@ void QgsBookmarks::exportToXml()
// If it's the EPSG code, convert it to internal srid
if ( header == QStringLiteral( "sr_id" ) )
{
QgsCoordinateReferenceSystem crs;
if ( crs.createFromOgcWmsCrs( value ) )
value = QString::number( crs.srsid( ) );
QgsCoordinateReferenceSystem crs = QgsCRSCache::instance()->crsByOgcWmsCrs( value );
if ( crs.isValid() )
value = QString::number( crs.srsid() );
else
value = QString();
}
Expand Down

0 comments on commit 06380c7

Please sign in to comment.