diff options
author | Patrick Tessier | 2016-07-01 13:02:56 +0000 |
---|---|---|
committer | Patrick Tessier | 2016-07-01 13:02:56 +0000 |
commit | 4ab417886162b6cb281263cb6455f6673d24f5d5 (patch) | |
tree | f55d339f61a870da48459fc3edf63b513261305c /plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di | |
parent | d082d973cadde041281180b7038fc16287717f82 (diff) | |
download | org.eclipse.papyrus-4ab417886162b6cb281263cb6455f6673d24f5d5.tar.gz org.eclipse.papyrus-4ab417886162b6cb281263cb6455f6673d24f5d5.tar.xz org.eclipse.papyrus-4ab417886162b6cb281263cb6455f6673d24f5d5.zip |
Revert "Revert "Bug 496846: ArrayIndexOutOfBoundsException below TabFolderImpl.movePage""
This reverts commit d082d973cadde041281180b7038fc16287717f82.
Change-Id: I215bf30a4dce9476e051135a0c5e862f7c615d01
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di')
-rw-r--r-- | plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java | 9 |
1 files changed, 3 insertions, 6 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 75e82c4e982..e14ab8a12d1 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,15 +347,12 @@ public class TabFolderImpl extends AbstractPanelImpl implements TabFolder { newIndex = 0; } - if (oldIndex == newIndex) { + if ((listSize == 0) + || (oldIndex == newIndex) + || (oldIndex < 0)) { return; } - if (listSize == 0) { - return; - } - - getChildren().move(newIndex, oldIndex); } |