From 6a8407d82d71083c8bdec6a106ba9092a5196cbe Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 1 Jun 2016 15:48:47 +0200 Subject: 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 --- sw/source/uibase/utlui/unotools.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sw') 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 aSeq(3); + uno::Sequence 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 ); -- cgit