Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
postgres provider: fix crs(), if no crs was requested
  • Loading branch information
jef-n committed Feb 6, 2012
1 parent eac3a8f commit c2fee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -3100,7 +3100,7 @@ QgsVectorLayerImport::ImportError QgsPostgresProvider::createEmptyLayer(
QgsCoordinateReferenceSystem QgsPostgresProvider::crs()
{
QgsCoordinateReferenceSystem srs;
srs.createFromSrid( mRequestedSrid.toInt() );
srs.createFromSrid( mRequestedSrid.isEmpty() ? mDetectedSrid.toInt() : mRequestedSrid.toInt() );
return srs;
}

Expand Down

0 comments on commit c2fee79

Please sign in to comment.