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