[fusion-commits] r2472 - trunk/widgets/Redline/classes
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Nov 29 21:55:41 EST 2011
Author: liuar
Date: 2011-11-29 18:55:41 -0800 (Tue, 29 Nov 2011)
New Revision: 2472
Modified:
trunk/widgets/Redline/classes/markupeditor.php
Log:
Supplemental fix for ticket #487
user can digitize two points to generate a triangle. So set the limitation from 3 to 2.
Modified: trunk/widgets/Redline/classes/markupeditor.php
===================================================================
--- trunk/widgets/Redline/classes/markupeditor.php 2011-11-30 02:38:35 UTC (rev 2471)
+++ trunk/widgets/Redline/classes/markupeditor.php 2011-11-30 02:55:41 UTC (rev 2472)
@@ -148,7 +148,7 @@
}
// Add the first vertex to make the ring close
- if($count > 3)
+ if($count > 2)
{
$coord = $geometryFactory->CreateCoordinateXY((double) $vertices[1], (double) $vertices[2]);
$coords->Add($coord);
More information about the fusion-commits
mailing list