From 395db598591edc123148770de42dac30bf505296 Mon Sep 17 00:00:00 2001 From: Akshay Deep Date: Sat, 28 May 2016 20:52:34 +0530 Subject: Resolves: Error when overwriting a template in Template Save As Dialog After overwriting a template, overwritten template does not exist in the template manager because SfxDocumentTemplates is not updated.. Change-Id: I7e8605091de71b921f8dbed5ab2022ac292fe4b2 Reviewed-on: https://gerrit.libreoffice.org/25584 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sfx2/source/doc/saveastemplatedlg.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sfx2') diff --git a/sfx2/source/doc/saveastemplatedlg.cxx b/sfx2/source/doc/saveastemplatedlg.cxx index 1d46197db866..beef6e60b3e8 100644 --- a/sfx2/source/doc/saveastemplatedlg.cxx +++ b/sfx2/source/doc/saveastemplatedlg.cxx @@ -162,6 +162,7 @@ bool SfxSaveAsTemplateDialog::SaveTemplate() if(!mpDocTemplates->InsertTemplate( mnRegionPos, nDocId, msTemplateName, sURL)) return false; + mpDocTemplates->Update(); return true; } -- cgit