[QGIS Commit] r10398 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Mar 22 05:38:10 EDT 2009


Author: wonder
Date: 2009-03-22 05:38:10 -0400 (Sun, 22 Mar 2009)
New Revision: 10398

Modified:
   trunk/qgis/src/core/qgscoordinatereferencesystem.cpp
Log:
fixed handling of projections not stored in qgis database.
now the projection string shouldn't be lost.


Modified: trunk/qgis/src/core/qgscoordinatereferencesystem.cpp
===================================================================
--- trunk/qgis/src/core/qgscoordinatereferencesystem.cpp	2009-03-22 07:41:35 UTC (rev 10397)
+++ trunk/qgis/src/core/qgscoordinatereferencesystem.cpp	2009-03-22 09:38:10 UTC (rev 10398)
@@ -430,8 +430,14 @@
       }
     }
   }
+  
+  // if we failed to look up the projection in database, don't worry. we can still use it :)
+  if (!mIsValidFlag)
+  {
+    setProj4String(theProj4String);
+  }
 
-  // NOTE: if its still empty after all the above steps then, the projection string is lost. Is that bad?
+
   return mIsValidFlag;
 }
 



More information about the QGIS-commit mailing list