Skip to content

Commit

Permalink
BUGFIX: Fix ArrayIndexOutOfBoundsException in PgsTabbedPaneUI, caused…
Browse files Browse the repository at this point in the history
… by out of bounds pointer for the previously hovered tab
  • Loading branch information
pago committed Jan 10, 2014
1 parent 56e8f2b commit 26508fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pgslookandfeel.iml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/pagosoft/plaf/PgsTabbedPaneUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected void mySetRolloverTab(int index) {
tabPane.repaint(rects[rolloverTabIndex]);
}
tabPane.repaint(rects[index]);
} else if(rolloverTabIndex != -1) {
} else if(rolloverTabIndex != -1 && rolloverTabIndex < rects.length) {
tabPane.repaint(rects[rolloverTabIndex]);
}
rolloverTabIndex = index;
Expand Down

0 comments on commit 26508fc

Please sign in to comment.