coverity#1158101 Unchecked dynamic_cast

Change-Id: Ibbe35f67a92dd41d45d2e1b4a3bb240b6b7adc66
This commit is contained in:
Caolán McNamara
2014-02-07 11:40:12 +00:00
parent c72f099d90
commit ac01fd5182

View File

@@ -223,6 +223,7 @@ void SdFiltersTest::testN828390()
// Get the object
SdrObject *pObj = pPage->GetObj(0);
SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj );
CPPUNIT_ASSERT( pTxtObj );
const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject();
aEdit.GetCharAttribs(0, rLst);
for( std::vector<EECharAttrib>::reverse_iterator it = rLst.rbegin(); it!=rLst.rend(); ++it)