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

Caolán McNamara caolanm at redhat.com
Fri Dec 16 15:25:09 UTC 2016


 sfx2/source/control/unoctitm.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 429290b8cf1fba8f730e00786dd3fd864a5c9ad5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 16 15:24:22 2016 +0000

    -Werror=maybe-unintialized
    
    Change-Id: I73eb58e44c00d5e1cfcabe71f2ba946a81a62fa7

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index ad66f45..3b0a6b8 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1107,10 +1107,10 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
     }
     else if (aEvent.FeatureURL.Path == "ToggleMergeCells")
     {
-        if (aEvent.IsEnabled)
+        sal_Bool aBool;
+
+        if (aEvent.IsEnabled && (aEvent.State >>= aBool))
         {
-            sal_Bool aBool;
-            aEvent.State >>= aBool;
             aBuffer.append(OUString::boolean(aBool));
         }
         else


More information about the Libreoffice-commits mailing list