[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 27 08:46:31 UTC 2020


 vcl/unx/gtk3/gtk3gtkframe.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 283124fcf07fe8e38417579ce6d94ecf56715ac1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Nov 26 17:13:28 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Nov 27 09:45:53 2020 +0100

    silence warnings about negative widths under RTL
    
    I don't see any visual problems, but there are these
    annoying warnings
    
    Change-Id: Ifc8830503cdc57084272a973b09927069caabada
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106713
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 4680acf77a67..bb636e7874f8 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -2953,6 +2953,10 @@ void GtkSalFrame::damaged(sal_Int32 nExtentsX, sal_Int32 nExtentsY,
     }
 #endif
 
+    // quite a bit of noise in RTL mode with negative widths
+    if (nExtentsWidth <= 0 || nExtentsHeight <= 0)
+        return;
+
     gtk_widget_queue_draw_area(GTK_WIDGET(m_pFixedContainer),
                                nExtentsX, nExtentsY,
                                nExtentsWidth, nExtentsHeight);


More information about the Libreoffice-commits mailing list