diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-30 16:27:52 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-30 16:43:53 +0200 |
commit | c2ed5f000efafdababa5aa2caa47b159b33ef65c (patch) | |
tree | 857f06cde51404048ba8c7af85791483816f0e42 | |
parent | 1ad901464afa29c96682bde59a12f864fccd525a (diff) |
coverity#735942 Unchecked dynamic_cast
Change-Id: Id508e771b0f117437671f40060c68122a408e386
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 2074a06dc0da..97749ffdc74c 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -3679,7 +3679,8 @@ bool RtfAttributeOutput::FlyFrameOLEMath(const SwFlyFrmFmt* pFlyFrmFmt, SwOLENod oox::FormulaExportBase* pBase = dynamic_cast<oox::FormulaExportBase*>(dynamic_cast<SfxBaseModel*>(xClosable.get())); assert( pBase != NULL ); OStringBuffer aBuf; - pBase->writeFormulaRtf(aBuf, m_rExport.eCurrentEncoding); + if (pBase) + pBase->writeFormulaRtf(aBuf, m_rExport.eCurrentEncoding); m_aRunText->append(aBuf.makeStringAndClear()); // Replacement graphic. m_aRunText->append("{" LO_STRING_SVTOOLS_RTF_MMATHPICT " "); |