From 431dc963a0d18341c9b4869a2a64009b7ff7f699 Mon Sep 17 00:00:00 2001 From: Amin Irgaliev Date: Wed, 28 Jun 2023 17:40:12 +0400 Subject: tdf#125543 Fix window size in GTK3 plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Caolán McNamara --- vcl/unx/gtk3/gtkframe.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 } -- cgit