|
@@ -74,7 +74,7 @@ public class Combine implements AlgorithmStage {
|
|
|
graph.setColor( Color.BLACK, null );
|
|
|
MainView.frame.setSize( MainView.frame.getWidth() + 1, MainView.frame.getHeight() );
|
|
|
MainView.frame.setSize( MainView.frame.getWidth() - 1, MainView.frame.getHeight() );
|
|
|
- actions.add( () -> {
|
|
|
+ actions.add( 0, () -> {
|
|
|
state = State.ALIGN;
|
|
|
graph.setColor( null, null );
|
|
|
MainView.frame.setSize( MainView.frame.getWidth() + 1, MainView.frame.getHeight() );
|
|
@@ -96,7 +96,7 @@ public class Combine implements AlgorithmStage {
|
|
|
Collections.sort( positions );
|
|
|
int oldX = (int)current.getX( LayoutType.COMBINED );
|
|
|
current.setX( (positions.get( 1 ) + positions.get( 2 )) / 2, true, LayoutType.COMBINED );
|
|
|
- actions.add( () -> {
|
|
|
+ actions.add( 0, () -> {
|
|
|
vIndex--;
|
|
|
current.setX( oldX, true, LayoutType.COMBINED );
|
|
|
current.setSelected( null );
|