coverity#735942 Unchecked dynamic_cast
Change-Id: Id508e771b0f117437671f40060c68122a408e386
This commit is contained in:
@@ -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 " ");
|
||||||
|
Reference in New Issue
Block a user