[Libreoffice-commits] core.git: 2 commits - writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Sat Mar 29 12:11:15 PDT 2014


 writerfilter/source/dmapper/DomainMapper.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 10c03d7670c1c99e5c9828aa7162088bc4b3e374
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Sat Mar 29 20:05:00 2014 +0100

    coverity#1194902 Unchecked dynamic_cast
    
    Change-Id: I7a7c8d365e9f90096c98120e448a5571ca5e54a5

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index b0e2b3b..ecc7be2 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1261,7 +1261,8 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
             {
 
                 StyleSheetPropertyMap* pStyleSheetPropertyMap = dynamic_cast< StyleSheetPropertyMap* >( rContext.get() );
-                pStyleSheetPropertyMap->SetOutlineLevel( nLvl );
+                if (pStyleSheetPropertyMap)
+                    pStyleSheetPropertyMap->SetOutlineLevel( nLvl );
             }
             else
             {
commit 756a220c13c3af17ea6c3cc95b028928bc3dc8a6
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Sat Mar 29 20:04:07 2014 +0100

    coverity#1194901 Unchecked dynamic_cast
    
    Change-Id: I63f91359f4232c5897de77905b3375e9c2f30d2e

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index f36db65..b0e2b3b 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1785,7 +1785,8 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
         if( pContext.get() )
         {
             ParagraphPropertyMap* pParaContext = dynamic_cast< ParagraphPropertyMap* >( pContext.get() );
-            pParaContext->SetFrameMode();
+            if (pParaContext)
+                pParaContext->SetFrameMode();
         }
         else
         {


More information about the Libreoffice-commits mailing list