[PATCH] fdo#37024: SwView::SwView: fix BROWSE_MODE setting:
Michael Stahl
mstahl at redhat.com
Wed Feb 1 06:49:16 PST 2012
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.
---
sw/source/ui/uiview/view.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx
index b3bbf87..e291c19 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.
--
1.7.7.3
--y0ulUmNC+osPPQO6--
More information about the LibreOffice
mailing list