vcl/unx/gtk3/gtkframe.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ca93bbe8703bd6cf2aef8a649b0db2524a61afe9
Author:     Amin Irgaliev <irgalie...@mail.ru>
AuthorDate: Wed Jun 28 17:40:12 2023 +0400
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Fri Sep 22 20:36:19 2023 +0200

    tdf#125543 Fix window size in GTK3 plugin
    
    When importing a csv file, the size of the main window Calc in windowed 
mode were not set
    because of erroneous check for widget visibility in gtk3.
    Now it isn't the visibility of the widget that is checked, but whether the 
checked widget is a window.
    A similar problem was observed in Base
    
    Change-Id: I48f882f407ba17c6c983c5b0939b9ff789ee59f6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153670
    Tested-by: Jenkins
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit 431dc963a0d18341c9b4869a2a64009b7ff7f699)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157119
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>

diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index ea13a70ad0ca..6152d64bd86e 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -841,8 +841,7 @@ void GtkSalFrame::window_resize(tools::Long nWidth, 
tools::Long nHeight)
     }
     gtk_window_set_default_size(GTK_WINDOW(m_pWindow), nWidth, nHeight);
 #if !GTK_CHECK_VERSION(4,0,0)
-    if (gtk_widget_get_visible(m_pWindow))
-        gtk_window_resize(GTK_WINDOW(m_pWindow), nWidth, nHeight);
+    gtk_window_resize(GTK_WINDOW(m_pWindow), nWidth, nHeight);
 #endif
 }
 

Reply via email to