summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-07 20:29:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-08 15:30:56 +0100
commit5f6aed6016c33c3d2dae26789ac3b6b69f5edbba (patch)
tree321278fa6ff0c75d2abd3ab7c7850390a9d3de27
parent2fe749a2559a2fde67e930ffbaa0fa85663b6650 (diff)
tdf#146641 allocations attempted while hidden are discarded by gtk
Change-Id: I46288cf4c106e2763feba298f1c44dbbf6c85581 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128132 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtkobject.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkobject.cxx b/vcl/unx/gtk3/gtkobject.cxx
index d712dae3c8bb..6f8fffd3f0a0 100644
--- a/vcl/unx/gtk3/gtkobject.cxx
+++ b/vcl/unx/gtk3/gtkobject.cxx
@@ -496,7 +496,12 @@ void GtkSalObjectWidgetClip::Show( bool bVisible )
if (bVisible == bCurrentVis)
return;
if( bVisible )
+ {
gtk_widget_show(m_pScrolledWindow);
+ // tdf#146641 allocations attempted while hidden are discarded by gtk,
+ // so on transition to visible ApplyClipRegion needs to be called
+ ApplyClipRegion();
+ }
else
{
// on hiding the widget, if a child has focus gtk will want to move the focus out of the widget