mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
fix startup crashes
This commit is contained in:
@@ -100,9 +100,11 @@ public class DebugTray extends JFrame {
|
||||
this.editor = editor;
|
||||
editor.addComponentListener(new EditorFollower());
|
||||
|
||||
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
|
||||
add(createToolbar());
|
||||
add(createScrollPane());
|
||||
//setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
|
||||
Box box = Box.createVerticalBox();
|
||||
box.add(createToolbar());
|
||||
box.add(createScrollPane());
|
||||
getContentPane().add(box);
|
||||
pack();
|
||||
|
||||
/*
|
||||
|
||||
@@ -2174,9 +2174,11 @@ public class JavaEditor extends Editor {
|
||||
ta.clearGutterText();
|
||||
// load appropriate line backgrounds for tab
|
||||
// first paint breakpoints
|
||||
for (LineHighlight hl : breakpointedLines) {
|
||||
if (isInCurrentTab(hl.getLineID())) {
|
||||
hl.paint();
|
||||
if (breakpointedLines != null) {
|
||||
for (LineHighlight hl : breakpointedLines) {
|
||||
if (isInCurrentTab(hl.getLineID())) {
|
||||
hl.paint();
|
||||
}
|
||||
}
|
||||
}
|
||||
// now paint current line (if any)
|
||||
|
||||
Reference in New Issue
Block a user