summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx23
1 files changed, 1 insertions, 22 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 1159fbdf3663..556727e5d504 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -583,29 +583,8 @@ void SwNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
case RES_GRF_REREAD_AND_INCACHE:
if( SwNodeType::Grf == GetNode()->GetNodeType() )
{
+ // TODO: Remove - due to GraphicObject refactoring
bComplete = false;
- SwGrfNode* pNd = static_cast<SwGrfNode*>( GetNode());
-
- SwViewShell* pVSh = pNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentViewShell();
- if( pVSh )
- {
- GraphicAttr aAttr;
- if( pNd->GetGrfObj().IsCached( pVSh->GetOut(), Point(),
- Prt().SSize(), &pNd->GetGraphicAttr( aAttr, this ) ))
- {
- for(SwViewShell& rShell : pVSh->GetRingContainer())
- {
- SET_CURR_SHELL( &rShell );
- if( rShell.GetWin() )
- {
- if( rShell.IsPreview() )
- ::RepaintPagePreview( &rShell, Frame().SVRect() );
- else
- rShell.GetWin()->Invalidate( Frame().SVRect() );
- }
- }
- }
- }
}
break;