git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81d431
)
JAL-845 avoid OOBException when method is called with only one view
author
Jim Procter
<jprocter@dundee.ac.uk>
Wed, 11 Feb 2015 09:19:55 +0000
(09:19 +0000)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Wed, 11 Feb 2015 09:19:55 +0000
(09:19 +0000)
src/jalview/gui/AlignFrame.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignFrame.java
b/src/jalview/gui/AlignFrame.java
index
3ef56bf
..
6a42a65
100644
(file)
--- a/
src/jalview/gui/AlignFrame.java
+++ b/
src/jalview/gui/AlignFrame.java
@@
-5930,7
+5930,8
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
throw new Error(MessageManager.getString("error.implementation_error_cannot_show_view_alignment_frame"));
}
if (tabbedPane != null
- & alignPanels.indexOf(alignmentPanel) != tabbedPane
+ && tabbedPane.getTabCount() > 0
+ && alignPanels.indexOf(alignmentPanel) != tabbedPane
.getSelectedIndex())
{
tabbedPane.setSelectedIndex(alignPanels.indexOf(alignmentPanel));