diff options
| author | Raymond Lam | 2011-11-25 17:09:10 +0000 |
|---|---|---|
| committer | Felipe Heidrich | 2011-12-05 15:19:04 +0000 |
| commit | 092a2269ca277410b54736129c2ad6cee19fe1eb (patch) | |
| tree | a0ede42d46fc175c6444c5209cd8ce4ae5f41db2 | |
| parent | 43a3f52e37cf9b69b9b1c137a0a8b7d82bed596f (diff) | |
| download | eclipse.platform.swt-092a2269ca277410b54736129c2ad6cee19fe1eb.tar.gz eclipse.platform.swt-092a2269ca277410b54736129c2ad6cee19fe1eb.tar.xz eclipse.platform.swt-092a2269ca277410b54736129c2ad6cee19fe1eb.zip | |
Fix glass detection logic in button widget.
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java | 2 |
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 968ff6cf85..c320875a9b 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; |
