summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRaymond Lam2011-11-25 12:09:10 (EST)
committer Felipe Heidrich2011-12-05 10:19:04 (EST)
commit092a2269ca277410b54736129c2ad6cee19fe1eb (patch)
treea0ede42d46fc175c6444c5209cd8ce4ae5f41db2
parent43a3f52e37cf9b69b9b1c137a0a8b7d82bed596f (diff)
downloadeclipse.platform.swt-092a2269ca277410b54736129c2ad6cee19fe1eb.zip
eclipse.platform.swt-092a2269ca277410b54736129c2ad6cee19fe1eb.tar.gz
eclipse.platform.swt-092a2269ca277410b54736129c2ad6cee19fe1eb.tar.bz2
Fix glass detection logic in button widget.
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index 968ff6c..c320875 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -638,7 +638,7 @@ public int getAlignment () {
boolean getBufferredPaint() {
Shell shell = getShell ();
- if ((shell.style & SWT.TRIM_FILL) != 0) {
+ if ((shell.style & SWT.TRIM_FILL) != 0 && (this.style & SWT.TRIM_FILL) != 0) {
if ((style & SWT.PUSH) != 0) return true;
if ((style & SWT.TOGGLE) != 0) return true;
if ((style & SWT.RADIO) != 0) return true;