diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-29 21:04:27 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-29 21:26:13 +0100 |
commit | e9509e54b45fc429a93975917dca2ec343e5f48d (patch) | |
tree | 42f49133bf2e74a887655017ff64deab40ef386b /writerfilter | |
parent | 9361d5a2dd9615e053b308e358afb8b36b843e71 (diff) |
coverity#736004 Unchecked dynamic_cast
Change-Id: Icca4946543409adb0ac6f7bf78915f8ef5b0fa40
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 0df4a5412b8d..2177596330ad 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -746,6 +746,8 @@ void DomainMapper_Impl::CheckUnregisteredFrameConversion( ) pFrameProperties[15].Name = rPropNameSupplier.GetName(PROP_BACK_COLOR_TRANSPARENCY); const ParagraphProperties* pStyleProperties = dynamic_cast<const ParagraphProperties*>( pParaStyle->pProperties.get() ); + if (!pStyleProperties) + return; sal_Int32 nWidth = rAppendContext.pLastParagraphProperties->Getw() > 0 ? rAppendContext.pLastParagraphProperties->Getw() : |