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 { ...@@ -117,8 +117,8 @@ public class TabbedPane extends JTabbedPane {
@Nullable @Nullable
private JumpPosition getCurrentPosition() { private JumpPosition getCurrentPosition() {
ContentPanel selectedCodePanel = getSelectedCodePanel(); ContentPanel selectedCodePanel = getSelectedCodePanel();
if (selectedCodePanel instanceof CodeContentPanel) { if (selectedCodePanel instanceof AbstractCodeContentPanel) {
return ((CodeContentPanel) selectedCodePanel).getCodeArea().getCurrentPosition(); return ((AbstractCodeContentPanel) selectedCodePanel).getCodeArea().getCurrentPosition();
} }
return null; 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