Fixed: #1636 Exception after search - traitslist with not properly set abc, other ui exception

This commit is contained in:
Jindra Petřík
2021-03-02 18:07:34 +01:00
parent f0b64e79fc
commit d64ff4fb3d
3 changed files with 7 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file.
- Generic tag tree exception on save
- Copying to clipboard does not support transparency
- #1634 AS3 slot/const editor loses focus on edit button press
- #1636 Exception after search - traitslist with not properly set abc, other ui exception
### Removed
- #1631 ActiveX Flash component download in windows installer

View File

@@ -1359,6 +1359,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
searchPanel.setOptions(ignoreCase, regExp);
searchPanel.setSearchText(searchedText);
ScriptPack pack = result.getScriptPack();
setAbc(pack.abc);
Runnable setScriptComplete = new Runnable() {
@Override

View File

@@ -671,7 +671,11 @@ public class LineMarkedEditorPane extends UndoFixedEditorPane implements LinkHan
line += firstLineOffset();
g.fillRect(0, d + lh * (line - 1), getWidth(), lh);
}
super.paint(g);
try {
super.paint(g);
} catch (Exception ex) {
//ignore
}
for (int line : lineMarkers.keySet()) {
SortedSet<LineMarker> cs = lineMarkers.get(line);