Skip to content
Permalink
Browse files

postgres provider: fix crs(), if no crs was requested

  • Loading branch information
jef-n committed Feb 6, 2012
1 parent eac3a8f commit c2fee7927341c52647fa5e4c2fe42a51ce5f16f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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;
}

0 comments on commit c2fee79

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