coverity#704794 Unchecked dynamic_cast

Change-Id: Idbfdfe687ac94f1e1135c8a877a7b133056a875f
This commit is contained in:
Caolán McNamara
2014-03-12 10:40:05 +00:00
parent 17b0d011da
commit aabee84e8c

View File

@@ -1295,6 +1295,8 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl )
SFX_APP();
SfxTabPage *pPage = dynamic_cast<SfxTabPage*> (pTabCtrl->GetTabPage( nId ));
DBG_ASSERT( pPage, "no active Page" );
if (!pPage)
return sal_False;
#ifdef DBG_UTIL
Data_Impl* pDataObject = Find( pImpl->aData, pTabCtrl->GetCurPageId() );
DBG_ASSERT( pDataObject, "no Data structur for current page" );