[QGIS Commit] r10690 - branches/Version-1_0/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Apr 30 17:44:38 EDT 2009


Author: mhugent
Date: 2009-04-30 17:44:38 -0400 (Thu, 30 Apr 2009)
New Revision: 10690

Modified:
   branches/Version-1_0/src/core/qgsgeometry.cpp
Log:
backport fix for bug #1667

Modified: branches/Version-1_0/src/core/qgsgeometry.cpp
===================================================================
--- branches/Version-1_0/src/core/qgsgeometry.cpp	2009-04-30 21:26:23 UTC (rev 10689)
+++ branches/Version-1_0/src/core/qgsgeometry.cpp	2009-04-30 21:44:38 UTC (rev 10690)
@@ -2645,11 +2645,15 @@
   {
     newRing = createGeosLinearRing( ring.toVector() );
     if ( !GEOSisValid( newRing ) )
-      throw GEOSException( "ring is invalid" );
+    {
+        throwGEOSException( "ring is invalid" );
+    }
 
     newRingPolygon = createGeosPolygon( newRing );
     if ( !GEOSisValid( newRingPolygon ) )
-      throw GEOSException( "ring polygon is invalid" );
+    {
+        throwGEOSException("ring polygon is invalid" );
+    }
   }
   catch ( GEOSException &e )
   {



More information about the QGIS-commit mailing list