diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-06-01 15:48:47 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-01 15:50:42 +0200 |
commit | 6a8407d82d71083c8bdec6a106ba9092a5196cbe (patch) | |
tree | 433138ba334cfb0a41aa5b639b990b7923eb5976 /sw | |
parent | d22f8bb62669f8bbfef13a5b6b55faf4584d70ec (diff) |
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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/unotools.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx index f83991a8e35b..5a43806c3c00 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 ); |