[Libreoffice-commits] core.git: sfx2/source

Niklas Johansson sleeping.pillow at gmail.com
Fri Mar 8 09:18:55 PST 2013


 sfx2/source/doc/templatedlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 390a0bf406ed5fd3bbd2c3f80d44c0bc344b95d2
Author: Niklas Johansson <sleeping.pillow at gmail.com>
Date:   Fri Mar 8 16:49:46 2013 +0100

    A template it should create a new document not open in edit mode
    
    I did a misstake in a previous patch. This patch fixes that.
    
    Change-Id: I22c2ff8a03c5652717a8705474f2cbe3b5b9208b
    (cherry picked from commit 29fecdb19906ad4c6463d4a47de073ff36c1274c)

diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 06a0dfe..c5979fa 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -679,7 +679,7 @@ IMPL_LINK(SfxTemplateManagerDlg, OpenTemplateHdl, ThumbnailViewItem*, pItem)
     {
         uno::Sequence< PropertyValue > aArgs(3);
         aArgs[0].Name = "AsTemplate";
-        aArgs[0].Value <<= sal_False;
+        aArgs[0].Value <<= sal_True;
         aArgs[1].Name = "MacroExecutionMode";
         aArgs[1].Value <<= MacroExecMode::USE_CONFIG;
         aArgs[2].Name = "UpdateDocMode";


More information about the Libreoffice-commits mailing list