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

New commits:
commit 431dc963a0d18341c9b4869a2a64009b7ff7f699
Author:     Amin Irgaliev <irgalie...@mail.ru>
AuthorDate: Wed Jun 28 17:40:12 2023 +0400
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Jun 30 10:40:28 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>

diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index 516ada842a8c..d8d5760a16bb 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