[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Jul 12 10:18:13 UTC 2020


 svx/source/tbxctrls/verttexttbxctrl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bb99e03cf2de5c130e1dd327d2ea4b18d86c5678
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jul 11 19:49:29 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jul 12 12:17:35 2020 +0200

    cid#1465253 Unchecked return value
    
    Change-Id: I796fa775f6447801fa9e5f0eef023cf3b2ce8908
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98577
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx
index 18d6b2b8b4e6..431af7ee6a45 100644
--- a/svx/source/tbxctrls/verttexttbxctrl.cxx
+++ b/svx/source/tbxctrls/verttexttbxctrl.cxx
@@ -86,8 +86,8 @@ void SAL_CALL SvxVertCTLTextTbxCtrl::initialize(const css::uno::Sequence<css::un
 
     ToolBox* pToolBox = nullptr;
     sal_uInt16 nItemId = 0;
-    getToolboxId(nItemId, &pToolBox);
-    m_bVisible = pToolBox && pToolBox->IsItemVisible(nItemId);
+    if (getToolboxId(nItemId, &pToolBox))
+        m_bVisible = pToolBox->IsItemVisible(nItemId);
 }
 
 void SAL_CALL SvxVertCTLTextTbxCtrl::statusChanged(const css::frame::FeatureStateEvent& rEvent)


More information about the Libreoffice-commits mailing list