Blob Blame History Raw
From 7fcb1bb88d0809c64ac4be2aa95a96a883e55af8 Mon Sep 17 00:00:00 2001
From: Stephan Bergmann <sbergman@redhat.com>
Date: Mon, 12 Sep 2011 12:19:54 +0200
Subject: [PATCH 4/4] fs34b: #i117545# (patch provided by
 mathias.bauer@oracle.com)

Signed-off-by: Noel Power <noel.power@novell.com>
---
 sw/source/ui/uno/unomod.cxx |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/sw/source/ui/uno/unomod.cxx b/sw/source/ui/uno/unomod.cxx
index fd32cc5..ff33fcf 100644
--- a/sw/source/ui/uno/unomod.cxx
+++ b/sw/source/ui/uno/unomod.cxx
@@ -748,8 +748,13 @@ void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, c
                 aOpt.setBrowseMode( bVal );
                 pView->GetWrtShell().ApplyViewOptions( aOpt );
                 pView->RecheckBrowseMode();
+
+                // must be set in mpViewOption as this will overwrite settings in _post!
                 if(mpViewOption)
                     mpViewOption->setBrowseMode(bVal);
+
+                // disable multiple layout
+                pView->GetDocShell()->ToggleBrowserMode(bVal, pView );
             }
         }
         break;
-- 
1.7.7.6