summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-07-18 16:09:05 +0200
committerAndras Timar <andras.timar@collabora.com>2017-07-31 12:03:54 +0200
commit8a5d6224b63352af68b92f605ba8c10fb37b9c72 (patch)
tree80d542b101f10d40ee13648f8e4908d7294001a2
parent3c80892996de40ec0413771a28dcbe20a02b33f1 (diff)
tdf#109188 Always load documents read-only in SwOneExampleFrame
Should be no problem since 38a3743e0c5d52f9386f74097fd512d3133fbbe3 Change-Id: I0ce47bc2bdaa900559a16baf25305066977caa6d Reviewed-on: https://gerrit.libreoffice.org/40140 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/40213 (cherry picked from commit 14f9bb560cc1ebf588683bcf2297ab44cb8993eb)
-rw-r--r--sw/source/uibase/utlui/unotools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index 636039a3c0c2..429a8033298d 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -143,7 +143,7 @@ void SwOneExampleFrame::CreateControl()
pValues[1].Name = "Referer";
pValues[1].Value <<= OUString("private:user");
pValues[2].Name = "ReadOnly";
- pValues[2].Value <<= (sTempURL != cFactory);
+ pValues[2].Value <<= (true);
uno::Any aArgs(aSeq);
xPrSet->setPropertyValue( "LoaderArguments", aArgs );