summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEvgeniy Gil2013-08-13 02:21:51 (EDT)
committer Paul Webster2013-08-14 14:44:07 (EDT)
commita19a59c4fa0b8cea3d604a0a33f3b208416024bc (patch)
tree6cdd7173b0cb2f3af839b7691782fdd989b8bc23
parent08785cd6edaeb6b8b2d19751f4e13dba1acb1726 (diff)
downloadeclipse.platform.ui-a19a59c4fa0b8cea3d604a0a33f3b208416024bc.zip
eclipse.platform.ui-a19a59c4fa0b8cea3d604a0a33f3b208416024bc.tar.gz
eclipse.platform.ui-a19a59c4fa0b8cea3d604a0a33f3b208416024bc.tar.bz2
Bug 399401 - Toolbars render in wrong location when perspective added to
a perspective-less workbench Change-Id: I0eacfbf788a318ca4af9ed38021da3d0cbe08416 Signed-off-by: Evgeniy Gil <egil@rocketsoftware.com>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
index 809a895..692acfa 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
@@ -386,7 +386,7 @@ public class PartRenderingEngine implements IPresentationEngine {
else
elementCtrl.moveAbove(null);
break;
- } else if (kid.getWidget() instanceof Control) {
+ } else if (kid.getWidget() instanceof Control && kid.isVisible()) {
prevCtrl = (Control) kid.getWidget();
}
}