summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-07-17 19:06:31 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-07-17 22:15:26 +0200
commitb2207e165d0fd7093c7f259a5ea053b7be060a76 (patch)
tree8a9ff83d640f4329882e6d666e1b76fbfe011d97 /sw
parent30907c0bb7eb8f1f69f5527ed67fab0bba02ceeb (diff)
Embedded documents: don't open in web view mode
Change-Id: I621d4ba4223c1b389acdb63bb6f8f10ef3f3ba48 Reviewed-on: https://gerrit.libreoffice.org/40076 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx3
1 files changed, 1 insertions, 2 deletions
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