diff options
-rw-r--r-- | sw/inc/swevent.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/swevent.hxx b/sw/inc/swevent.hxx index 425db6b6e3f6..e18020320544 100644 --- a/sw/inc/swevent.hxx +++ b/sw/inc/swevent.hxx @@ -127,10 +127,10 @@ struct SwCallMouseEvent final switch(pLegacy->GetWhich()) { case RES_FMT_CHG: - bClear |= static_cast<SwFormatChg const*>(pLegacy->m_pOld)->pChangedFormat == PTR.pFormat; + bClear |= pLegacy->m_pOld->StaticWhichCast(RES_FMT_CHG).pChangedFormat == PTR.pFormat; break; case RES_REMOVE_UNO_OBJECT: - bClear |= static_cast<SwPtrMsgPoolItem const*>(pLegacy->m_pOld)->pObject == PTR.pFormat; + bClear |= pLegacy->m_pOld->StaticWhichCast(RES_REMOVE_UNO_OBJECT).pObject == PTR.pFormat; } if(bClear) Clear(); |