diff options
| author | Alexander Kurtakov | 2018-10-31 08:53:53 +0000 |
|---|---|---|
| committer | Alexander Kurtakov | 2018-10-31 08:54:06 +0000 |
| commit | e36bed5af1ef3281401b74ba2232ae4f84143cda (patch) | |
| tree | a6d69d21ab7a6bae19d824149309408d7f339dd8 | |
| parent | 1ec2970be6d43b57f423ce5a51fac402db17787f (diff) | |
| download | eclipse.platform.swt-e36bed5af1ef3281401b74ba2232ae4f84143cda.tar.gz eclipse.platform.swt-e36bed5af1ef3281401b74ba2232ae4f84143cda.tar.xz eclipse.platform.swt-e36bed5af1ef3281401b74ba2232ae4f84143cda.zip | |
Revert "Bug 540298 - [regression] NPE in Widget.filters"I20181031-0540
This reverts commit e4b55c0b9e272f58deca6320664a073a2af373d4.
Change-Id: I3bcc8ab093d9ff2c9b6a703f04d7b829addcb512
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index 5f2d3d26e8..96f95b146e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -3446,8 +3446,7 @@ long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) { * makes the widget visible again in setBounds. See Bug 533469, Bug 531120. */ if (GTK.GTK_VERSION > OS.VERSION (3, 18, 0) && (state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) { - if (widget != 0 && GTK.gtk_widget_get_visible(widget)) GTK.gtk_widget_set_opacity(widget, 0); - if (display == null || display.isDisposed()) error (SWT.ERROR_DEVICE_DISPOSED); + if (GTK.gtk_widget_get_visible(widget)) GTK.gtk_widget_hide(widget); } /* * Modify the drawing of the widget with cairo_clip. |
