]> git.openstreetmap.org Git - potlatch2.git/commitdiff
Merge branch 'master' into mapquest
authorAntony Pegg <antthelimey@gmail.com>
Tue, 12 Apr 2011 13:28:03 +0000 (09:28 -0400)
committerAntony Pegg <antthelimey@gmail.com>
Tue, 12 Apr 2011 13:28:03 +0000 (09:28 -0400)
net/systemeD/potlatch2/tools/Quadrilateralise.as

index 3ddeb2207695e39cd528ab2f87259feba9f6f872..b050fc47d9a2e747bcfec1a33d34d842a64d46a0 100644 (file)
@@ -1,6 +1,7 @@
 package net.systemeD.potlatch2.tools {
   import net.systemeD.halcyon.connection.Way;
   import net.systemeD.halcyon.connection.Node;
+  import net.systemeD.halcyon.AttentionEvent;
   import flash.geom.Point;
   import net.systemeD.halcyon.connection.*;
 
@@ -28,7 +29,7 @@ package net.systemeD.potlatch2.tools {
         functor.step();
         var newScore:Number = functor.goodness;
         if (newScore > score) {
-          trace("Quadrilateralise blew up! " + newScore + " > " + score);
+          Connection.getConnection().dispatchEvent(new AttentionEvent(AttentionEvent.ALERT, null, "Corners too sharp to straighten"));
           return false;
            }
         score = newScore;