Explorar o código

in der combine phase wird beim rückwärtsgehen jetzt jeder Pseudocodeknoten wieder deselectiert

Kolja Strohm %!s(int64=6) %!d(string=hai) anos
pai
achega
a4f0dc3e68
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/bk/Combine.java

+ 3 - 1
src/bk/Combine.java

@@ -98,8 +98,9 @@ public class Combine implements AlgorithmStage {
             Color oldColor = graph.getColor( LayoutType.TOP_BOTTOM_LEFT );
             if( oldColor == null )
                 graph.setColor( Color.BLACK, null );
-            actions.add( 0, () -> {
+                actions.add( 0, () -> {
                 inside = false;
+                loopNode.setSelected( false );
                 setNode.setSelected( false );
                 breakPoint = false;
                 if( !alignNode.isSelected() )
@@ -220,6 +221,7 @@ public class Combine implements AlgorithmStage {
         if( actions.size() == 0 )
         {
             inside = false;
+            alignNode.setSelected( false );
             return StageStatus.FINISHED;
         }
         actions.get( 0 ).reverse();