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

Stephan Bergmann sbergman at redhat.com
Thu Jul 3 13:38:39 PDT 2014


 sw/source/uibase/config/modcfg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 16351a8ba50c04b9e4c7edbcf9491d2882a7eeda
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jul 3 22:38:05 2014 +0200

    error: reference cannot be bound to dereferenced null pointer
    
    Change-Id: Id0dbd21225534630b57514a9ddd7cf11a395f272

diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx
index 3795cbd..ec476a0 100644
--- a/sw/source/uibase/config/modcfg.cxx
+++ b/sw/source/uibase/config/modcfg.cxx
@@ -95,7 +95,7 @@ bool SwModuleOptions::SetCapOption(bool bHTML, const InsCaptionOpt* pOpt)
     }
     else if (pOpt)
     {
-        if(pOpt->GetObjType() == OLE_CAP && &pOpt->GetOleId())
+        if(pOpt->GetObjType() == OLE_CAP)
         {
             bool bFound = false;
             for( sal_uInt16 nId = 0; nId <= GLOB_NAME_CHART; nId++)


More information about the Libreoffice-commits mailing list