summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-08-04 21:46:38 +0000
committerFelipe Heidrich <fheidric>2005-08-04 21:46:38 +0000
commit37eed1b348f9035170c651d4f58b1c50a79c8ed7 (patch)
treef8fc86d917d8f8191ee6f4f0e22ba609df9f5845
parent33df0737bb4cbfc672078f4f8daddc93c1d602fc (diff)
downloadeclipse.platform.swt-37eed1b348f9035170c651d4f58b1c50a79c8ed7.tar.gz
eclipse.platform.swt-37eed1b348f9035170c651d4f58b1c50a79c8ed7.tar.xz
eclipse.platform.swt-37eed1b348f9035170c651d4f58b1c50a79c8ed7.zip
Fix for:
item.setPreferredSize(30, 40); System.out.println("Has bug: " + !item.getPreferredSize().equals(new Point (30, 40)));
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java
index 94ccfd193c..ff7d49306d 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java
@@ -372,7 +372,7 @@ public Point getPreferredSize () {
rbBand.fMask = OS.RBBIM_CHILDSIZE | OS.RBBIM_IDEALSIZE;
OS.SendMessage (hwnd, OS.RB_GETBANDINFO, index, rbBand);
int width = rbBand.cxIdeal + parent.getMargin (index);
- return new Point (width, rbBand.cyMinChild);
+ return new Point (width, rbBand.cyMaxChild);
}
/**