[geos-commits] r3612 - trunk/src/noding/snapround
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Apr 10 13:01:58 EDT 2012
Author: strk
Date: 2012-04-10 10:01:58 -0700 (Tue, 10 Apr 2012)
New Revision: 3612
Modified:
trunk/src/noding/snapround/HotPixel.cpp
Log:
Abort if HotPixel is constructed with zero scale (#529)
Modified: trunk/src/noding/snapround/HotPixel.cpp
===================================================================
--- trunk/src/noding/snapround/HotPixel.cpp 2012-04-10 15:58:38 UTC (rev 3611)
+++ trunk/src/noding/snapround/HotPixel.cpp 2012-04-10 17:01:58 UTC (rev 3612)
@@ -46,6 +46,7 @@
scaleFactor(newScaleFactor)
{
if (scaleFactor != 1.0) {
+ assert( scaleFactor != 0 ); // or should it be an IllegalArgumentException ?
pt.x=scale(pt.x);
pt.y=scale(pt.y);
}
More information about the geos-commits
mailing list