summaryrefslogtreecommitdiffstats
path: root/vcl/unx/gtk3/gtkobject.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-07 20:29:59 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2022-01-09 17:44:14 +0100
commit5dcfec0a31075723bf6b94c57d65b560da42df3b (patch)
tree44132b44fcb59e07d454e81bcaac6a4cf6dc0630 /vcl/unx/gtk3/gtkobject.cxx
parentResolves: tdf#146592 "Reset" to the current document properties (diff)
downloadcore-5dcfec0a31075723bf6b94c57d65b560da42df3b.tar.gz
core-5dcfec0a31075723bf6b94c57d65b560da42df3b.zip
tdf#146641 allocations attempted while hidden are discarded by gtk
Change-Id: I46288cf4c106e2763feba298f1c44dbbf6c85581 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128081 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'vcl/unx/gtk3/gtkobject.cxx')
-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 fbe5a7c39a75..42da4f6f9136 100644
--- a/vcl/unx/gtk3/gtkobject.cxx
+++ b/vcl/unx/gtk3/gtkobject.cxx
@@ -491,7 +491,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