diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-01 23:34:48 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-01 23:49:58 +0300 |
commit | cfeed2303f114afdf45b59c5a4994966e23fa76a (patch) | |
tree | 092c2236bd1c76566c80eb6bd810c239f82d2f7d | |
parent | 2a5073d91702061177b279e7a8555a1f30266015 (diff) |
Avoid rulers in non-DESKTOP environment
Another simple first step.
Change-Id: If683004cbb1ffac01e90b9b27e81c033d5b0e529
-rw-r--r-- | sw/source/ui/uiview/view.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx index 84c269959f3c..e4858ab52546 100644 --- a/sw/source/ui/uiview/view.cxx +++ b/sw/source/ui/uiview/view.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> #include <string> #include <stdlib.h> @@ -960,11 +961,12 @@ 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()); |