summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-02-01 15:49:16 +0100
committerNoel Power <noel.power@novell.com>2012-02-07 17:24:57 +0000
commitfe3ddc22e24a6815481c16e17cd1050bd91b5fe2 (patch)
tree1f652bf9ba003dbd00c96b48337a27856a6c5786
parent637d80a4aebf2b65a855283a68e6dd72e9d6de30 (diff)
fdo#37024: SwView::SwView: fix BROWSE_MODE setting:
Apparently there is a check in SwDoc::SetAllUniqueFlyNames so that when frames with certain anchor types are in a document, then SetLoaded() is never called. Checking this flag via IsLoaded() here seems unnecessary. This problem was introduced with ebc5777548dea42ed966a16c66d879b1485bbfb4, from CWS swlayoutrefactoring. Signed-off-by: Noel Power <noel.power@novell.com>
-rw-r--r--sw/source/ui/uiview/view.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx
index f6912af597..b2c920a7c6 100644
--- a/sw/source/ui/uiview/view.cxx
+++ b/sw/source/ui/uiview/view.cxx
@@ -835,7 +835,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
if( !bOldShellWasSrcView && pWebDShell && !bOldShellWasPagePreView )
aUsrPref.setBrowseMode( sal_True );
- else if( rDoc.IsLoaded() )
+ else
aUsrPref.setBrowseMode( rDoc.get(IDocumentSettingAccess::BROWSE_MODE) );
//Fuer den BrowseMode wollen wir keinen Factor uebernehmen.