diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-05-28 20:52:34 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-05-30 06:40:27 +0000 |
commit | 395db598591edc123148770de42dac30bf505296 (patch) | |
tree | 4b8d55069889727d3342261d5567e2aa13652b26 /sfx2 | |
parent | 92bad2a3d97586dc1127580e1d5a002679105149 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/saveastemplatedlg.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |