diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-07 20:11:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-08 21:22:50 +0100 |
commit | 235e1efd2fd938ac673a7c196a6264a0df5cfbc5 (patch) | |
tree | e334ee9f63a8bbe01d1b215543aa924b1a39bc8c /cui/source/options | |
parent | 0dad19175d65af7ea858b4e4e24ef7f7e772b6bb (diff) |
Resolves: tdf#129243 check return to see if results valid
Change-Id: Ia4169cda3c1a596ceedd074dd0e59898f9c72ff9
Reviewed-on: https://gerrit.libreoffice.org/84695
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optcolor.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index 0e6cb822715a..360c18e80d49 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); |