[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - sw/source

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 16 15:01:34 UTC 2021


 sw/source/core/doc/DocumentSettingManager.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 916821880ae220e0fc7295506b5a1cc8537871b9
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Fri Apr 16 15:56:41 2021 +0100
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Fri Apr 16 17:01:00 2021 +0200

    lok: force writer web-view off.
    
    A number of callers mutate this, so make the setting un-writable.
    
    Change-Id: I0a3727020309b92543e42730c997168f076e7bfb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114214
    Tested-by: Michael Meeks <michael.meeks at collabora.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/sw/source/core/doc/DocumentSettingManager.cxx b/sw/source/core/doc/DocumentSettingManager.cxx
index 66f08263ee55..9b8b19f71e7f 100644
--- a/sw/source/core/doc/DocumentSettingManager.cxx
+++ b/sw/source/core/doc/DocumentSettingManager.cxx
@@ -24,6 +24,7 @@
 #include <IDocumentDrawModelAccess.hxx>
 #include <IDocumentState.hxx>
 #include <IDocumentLayoutAccess.hxx>
+#include <comphelper/lok.hxx>
 #include <comphelper/processfactory.hxx>
 #include <editeng/forbiddencharacterstable.hxx>
 #include <svx/svdmodel.hxx>
@@ -407,7 +408,11 @@ void sw::DocumentSettingManager::set(/*[in]*/ DocumentSettingId id, /*[in]*/ boo
         // COMPATIBILITY FLAGS END
 
         case DocumentSettingId::BROWSE_MODE: //can be used temporary (load/save) when no SwViewShell is available
-            mbLastBrowseMode = value;
+            // Can't render in webview successfully.
+            if (comphelper::LibreOfficeKit::isActive())
+                mbLastBrowseMode = false;
+            else
+                mbLastBrowseMode = value;
             break;
 
         case DocumentSettingId::HTML_MODE:


More information about the Libreoffice-commits mailing list