Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2004-06-17 23:20:48 +0000
committerSteve Northover2004-06-17 23:20:48 +0000
commit1f29bbee7c448276d775f48366a765ab983e09f5 (patch)
tree43a229a6a765aa5b235d42d2bcf731b343dac61f
parent75c24afa8793c0a4d83a3fd58d4bb1508172056c (diff)
downloadeclipse.platform.swt-1f29bbee7c448276d775f48366a765ab983e09f5.tar.gz
eclipse.platform.swt-1f29bbee7c448276d775f48366a765ab983e09f5.tar.xz
eclipse.platform.swt-1f29bbee7c448276d775f48366a765ab983e09f5.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java
index 5829b97ba6..5abe01ad49 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java
@@ -173,7 +173,7 @@ public Point computeSize(int wHint, int hHint, boolean changed) {
w += curve_width - 2*curve_indent;
h += BORDER_TOP + BORDER_BOTTOM + 2*BORDER_STRIPE;
}
- h += left != null ? leftSize.y : rightSize.y;
+ h += Math.max(leftSize.y, rightSize.y);
if (wHint != SWT.DEFAULT) w = wHint;
if (hHint != SWT.DEFAULT) h = hHint;

Back to the top