[Libreoffice-commits] core.git: sw/source

Szymon Kłos szymon.klos at collabora.com
Mon Jul 17 20:16:11 UTC 2017


 sw/source/uibase/dochdl/swdtflvr.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit b2207e165d0fd7093c7f259a5ea053b7be060a76
Author: Szymon Kłos <szymon.klos at collabora.com>
Date:   Mon Jul 17 19:06:31 2017 +0200

    Embedded documents: don't open in web view mode
    
    Change-Id: I621d4ba4223c1b389acdb63bb6f8f10ef3f3ba48
    Reviewed-on: https://gerrit.libreoffice.org/40076
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 3d852d931287..be48f76e0df7 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -304,14 +304,13 @@ void SwTransferable::AddSupportedFormats()
     }
 }
 
-void SwTransferable::InitOle( SfxObjectShell* pDoc, SwDoc& rDoc )
+void SwTransferable::InitOle( SfxObjectShell* pDoc, SwDoc& )
 {
     //set OleVisArea. Upper left corner of the page and size of
     //RealSize in Twips.
     const Size aSz( OLESIZE );
     SwRect aVis( Point( DOCUMENTBORDER, DOCUMENTBORDER ), aSz );
     pDoc->SetVisArea( aVis.SVRect() );
-    rDoc.getIDocumentSettingAccess().set(DocumentSettingId::BROWSE_MODE, true );
 }
 
 uno::Reference < embed::XEmbeddedObject > SwTransferable::FindOLEObj( sal_Int64& nAspect ) const


More information about the Libreoffice-commits mailing list