Bug 314815 - Checkbox with null text will display a empty rectangle
Set image member before updating visibility as otherwise push buttons
lose their images.
Change-Id: Ia8c77f508ed3f75311e933074477781d054e9bac
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
index ed4dc16..60a09c5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
@@ -903,8 +903,8 @@
} else {
gtk_image_set_from_pixbuf (imageHandle, 0);
}
- updateWidgetsVisibility();
this.image = image;
+ updateWidgetsVisibility();
_setAlignment (style);
}