[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 9 08:53:16 UTC 2019


 cui/source/options/optcolor.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 79465546b7fe9af5efc320bfbef8d032042063c0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Dec 7 20:11:53 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 9 09:52:35 2019 +0100

    Resolves: tdf#129243 check return to see if results valid
    
    Change-Id: Ia4169cda3c1a596ceedd074dd0e59898f9c72ff9
    Reviewed-on: https://gerrit.libreoffice.org/84696
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index b0e11d5ad72b..4d4cf2be55a8 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -876,8 +876,10 @@ IMPL_LINK_NOARG(SvxColorOptionsTabPage, AdjustHeaderBar, const Size&, void)
 {
     // horizontal positions
     int nX0 = 0, nX1, nX2, y, width, height;
-    m_rWidget1.get_extents_relative_to(*m_xTable, nX1, y, width, height);
-    m_rWidget2.get_extents_relative_to(*m_xTable, nX2, y, width, height);
+    if (!m_rWidget1.get_extents_relative_to(*m_xTable, nX1, y, width, height))
+        return;
+    if (!m_rWidget2.get_extents_relative_to(*m_xTable, nX2, y, width, height))
+        return;
     auto nTextWidth1 = nX1 - nX0;
     auto nTextWidth2 = nX2 - nX1;
     m_xOnFT->set_size_request(nTextWidth1, -1);


More information about the Libreoffice-commits mailing list