Simplify after 6215c718a5884ed7301b97dc9f7e3f1d1f9ce96c

Change-Id: If0a6296c9b226c479413b475788d0c11d6ee7318
This commit is contained in:
Tor Lillqvist
2013-04-05 10:25:52 +03:00
parent 8ed93fef13
commit 2b8be1c679

View File

@@ -961,12 +961,11 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
m_bVScrollbarEnabled = aUsrPref.IsViewVScrollBar();
m_bHScrollbarEnabled = aUsrPref.IsViewHScrollBar();
m_pHScrollbar->SetAuto(bBrowse);
#if HAVE_FEATURE_DESKTOP
if( aUsrPref.IsViewHRuler() )
CreateTab();
if( aUsrPref.IsViewVRuler() )
CreateVRuler();
#endif
m_pWrtShell->SetUIOptions( aUsrPref );
m_pWrtShell->SetReadOnlyAvailable( aUsrPref.IsCursorInProtectedArea() );
m_pWrtShell->ApplyAccessiblityOptions(SW_MOD()->GetAccessibilityOptions());