coverity#735942 Unchecked dynamic_cast

Change-Id: Id508e771b0f117437671f40060c68122a408e386
This commit is contained in:
Miklos Vajna
2014-03-30 16:27:52 +02:00
parent 1ad901464a
commit c2ed5f000e

View File

@@ -3679,7 +3679,8 @@ bool RtfAttributeOutput::FlyFrameOLEMath(const SwFlyFrmFmt* pFlyFrmFmt, SwOLENod
oox::FormulaExportBase* pBase = dynamic_cast<oox::FormulaExportBase*>(dynamic_cast<SfxBaseModel*>(xClosable.get())); oox::FormulaExportBase* pBase = dynamic_cast<oox::FormulaExportBase*>(dynamic_cast<SfxBaseModel*>(xClosable.get()));
assert( pBase != NULL ); assert( pBase != NULL );
OStringBuffer aBuf; OStringBuffer aBuf;
pBase->writeFormulaRtf(aBuf, m_rExport.eCurrentEncoding); if (pBase)
pBase->writeFormulaRtf(aBuf, m_rExport.eCurrentEncoding);
m_aRunText->append(aBuf.makeStringAndClear()); m_aRunText->append(aBuf.makeStringAndClear());
// Replacement graphic. // Replacement graphic.
m_aRunText->append("{" LO_STRING_SVTOOLS_RTF_MMATHPICT " "); m_aRunText->append("{" LO_STRING_SVTOOLS_RTF_MMATHPICT " ");