Skip to content

Commit 5bbc7b7

Browse files
committed
fix two editor contexts when there should be one.
1 parent 6b111c0 commit 5bbc7b7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/marginallyclever/makelangelo/MainFrame.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,13 @@ public class MainFrame extends JFrame {
4949

5050
private final List<DockingPanel> windows = new ArrayList<>();
5151

52-
private final PreviewPanel previewPanel = new PreviewPanel();
52+
private final EditorContext editorContext = new EditorContext();
53+
private final PreviewPanel previewPanel = new PreviewPanel(editorContext);
5354
private final Donatello donatello = new Donatello();
5455
private final AboutPanel aboutPanel = new AboutPanel(MakelangeloVersion.VERSION, MakelangeloVersion.DETAILED_VERSION);
5556
private final NodeFactoryPanel nodeFactoryPanel = new NodeFactoryPanel();
5657
private final DockableEditNodePanel editNodePanel = new DockableEditNodePanel();
5758

58-
private final EditorContext editorContext = new EditorContext();
59-
6059
private final MainMenu mainMenuBar;
6160

6261
public MainFrame() {

0 commit comments

Comments
 (0)