diff options
Diffstat (limited to 'sw/source/core/doc/visiturl.cxx')
-rw-r--r-- | sw/source/core/doc/visiturl.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sw/source/core/doc/visiturl.cxx b/sw/source/core/doc/visiturl.cxx index 65314c6f3228..2aeec71876cb 100644 --- a/sw/source/core/doc/visiturl.cxx +++ b/sw/source/core/doc/visiturl.cxx @@ -83,12 +83,14 @@ void SwURLStateChanged::Notify( SfxBroadcaster& , const SfxHint& rHint ) bUnLockView = !pESh->IsViewLocked(); pESh->LockView( sal_True ); } - const_cast<SwTxtINetFmt*>(pTxtAttr)->SetVisitedValid( false ); + const_cast<SwTxtINetFmt*>(pTxtAttr)->SetVisitedValid(false); const SwTxtAttr* pAttr = pTxtAttr; - SwUpdateAttr aUpdateAttr( *pAttr->GetStart(), - *pAttr->End(), - RES_FMT_CHG ); - ((SwTxtNode*)pTxtNd)->ModifyNotification( &aUpdateAttr, &aUpdateAttr ); + SwUpdateAttr aUpdateAttr( + *pAttr->GetStart(), + *pAttr->End(), + RES_FMT_CHG); + + const_cast< SwTxtNode* >(pTxtNd)->ModifyNotification(&aUpdateAttr, &aUpdateAttr); } if( bAction ) |