Commit 1c914ff2 authored by Jan S's avatar Jan S Committed by skylot

fix(gui): back button was defect since #653

parent 31a02a70
......@@ -117,8 +117,8 @@ public class TabbedPane extends JTabbedPane {
@Nullable
private JumpPosition getCurrentPosition() {
ContentPanel selectedCodePanel = getSelectedCodePanel();
if (selectedCodePanel instanceof CodeContentPanel) {
return ((CodeContentPanel) selectedCodePanel).getCodeArea().getCurrentPosition();
if (selectedCodePanel instanceof AbstractCodeContentPanel) {
return ((AbstractCodeContentPanel) selectedCodePanel).getCodeArea().getCurrentPosition();
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment