summaryrefslogtreecommitdiff
path: root/sw/source/core/view/vnew.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/view/vnew.cxx')
-rw-r--r--sw/source/core/view/vnew.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/view/vnew.cxx b/sw/source/core/view/vnew.cxx
index 24c7ed35ff03..6ca815c0890c 100644
--- a/sw/source/core/view/vnew.cxx
+++ b/sw/source/core/view/vnew.cxx
@@ -104,10 +104,10 @@ void SwViewShell::Init( const SwViewOption *pNewOpt )
SAL_INFO( "sw.core", "View::Init - after InitPrt" );
if( GetWin() )
{
- SwViewOption::Init( GetWin() );
- GetWin()->SetFillColor();
+ SwViewOption::Init( GetWin()->GetOutDev() );
+ GetWin()->GetOutDev()->SetFillColor();
GetWin()->SetBackground();
- GetWin()->SetLineColor();
+ GetWin()->GetOutDev()->SetLineColor();
}
// Create a new layout, if there is no one available
@@ -150,7 +150,7 @@ SwViewShell::SwViewShell( SwDoc& rDocument, vcl::Window *pWindow,
mpImp( new SwViewShellImp( this ) ),
mpWin( pWindow ),
mpOut( pOutput ? pOutput
- : pWindow ? static_cast<OutputDevice*>(pWindow)
+ : pWindow ? pWindow->GetOutDev()
: static_cast<OutputDevice*>(rDocument.getIDocumentDeviceAccess().getPrinter( true ))),
mpAccOptions( new SwAccessibilityOptions ),
mbShowHeaderSeparator( false ),
@@ -220,7 +220,7 @@ SwViewShell::SwViewShell( SwViewShell& rShell, vcl::Window *pWindow,
mpImp( new SwViewShellImp( this ) ),
mpWin( pWindow ),
mpOut( pOutput ? pOutput
- : pWindow ? static_cast<OutputDevice*>(pWindow)
+ : pWindow ? pWindow->GetOutDev()
: static_cast<OutputDevice*>(rShell.GetDoc()->getIDocumentDeviceAccess().getPrinter( true ))),
mpAccOptions( new SwAccessibilityOptions ),
mbShowHeaderSeparator( false ),