[Libreoffice-commits] core.git: sw/source
Michael Stahl
mstahl at redhat.com
Wed Jun 1 13:53:20 UTC 2016
sw/source/uibase/utlui/unotools.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit 6a8407d82d71083c8bdec6a106ba9092a5196cbe
Author: Michael Stahl <mstahl at redhat.com>
Date: Wed Jun 1 15:48:47 2016 +0200
tdf#99827 sw: don't create AutoText dialog's preview doc ReadOnly
Since commit 5334ff287c65f028753171c7b38da7ffbcebc1cc the framework
refuses to create new documents as ReadOnly, so don't do that.
Change-Id: I9d94ca9859baaf5407bad88a2b4b5b2e26b99b94
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index f83991a..5a43806 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -137,14 +137,12 @@ void SwOneExampleFrame::CreateControl()
sTempURL = sArgumentURL;
aURL <<= sTempURL;
- uno::Sequence<beans::PropertyValue> aSeq(3);
+ uno::Sequence<beans::PropertyValue> aSeq(2);
beans::PropertyValue* pValues = aSeq.getArray();
- pValues[0].Name = "ReadOnly";
- pValues[0].Value <<= true;
- pValues[1].Name = "OpenFlags";
- pValues[1].Value <<= OUString("-RB");
- pValues[2].Name = "Referer";
- pValues[2].Value <<= OUString("private:user");
+ pValues[0].Name = "OpenFlags";
+ pValues[0].Value <<= OUString("-RB");
+ pValues[1].Name = "Referer";
+ pValues[1].Value <<= OUString("private:user");
uno::Any aArgs(aSeq);
xPrSet->setPropertyValue( "LoaderArguments", aArgs );
More information about the Libreoffice-commits
mailing list