Allow simplify to work on areas now that the algorithm has been
authorTom Hughes <tom@compton.nu>
Wed, 24 Nov 2010 22:59:00 +0000 (22:59 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 24 Nov 2010 22:59:00 +0000 (22:59 +0000)
fixed to work when there are multiple nodes in the same place.

net/systemeD/potlatch2/tools/Simplify.as

index 468923e..386f9e1 100644 (file)
@@ -10,7 +10,7 @@ package net.systemeD.potlatch2.tools {
                private static const TOLERANCE:Number=0.00005;
 
                public static function simplify(way:Way, map:Map, keepOffscreen:Boolean):void {
-                       if (way.length<3 || way.isArea()) { return; }
+                       if (way.length<3) { return; }
 
                        var action:CompositeUndoableAction = new CompositeUndoableAction("Simplify");