Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tessier2016-07-01 08:55:26 -0400
committerPatrick Tessier2016-07-01 08:55:26 -0400
commitd082d973cadde041281180b7038fc16287717f82 (patch)
tree7c1b90a5704b390180dd6d5afb3c4e4b8046c473
parentd65cbf89dee62ac919910d06dc93511359e0a61c (diff)
downloadorg.eclipse.papyrus-d082d973cadde041281180b7038fc16287717f82.tar.gz
org.eclipse.papyrus-d082d973cadde041281180b7038fc16287717f82.tar.xz
org.eclipse.papyrus-d082d973cadde041281180b7038fc16287717f82.zip
Revert "Bug 496846: ArrayIndexOutOfBoundsException below TabFolderImpl.movePage"
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java
index e14ab8a12d1..75e82c4e982 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java
@@ -347,12 +347,15 @@ public class TabFolderImpl extends AbstractPanelImpl implements TabFolder {
newIndex = 0;
}
- if ((listSize == 0)
- || (oldIndex == newIndex)
- || (oldIndex < 0)) {
+ if (oldIndex == newIndex) {
return;
}
+ if (listSize == 0) {
+ return;
+ }
+
+
getChildren().move(newIndex, oldIndex);
}

Back to the top