https://bugs.documentfoundation.org/show_bug.cgi?id=149859

--- Comment #5 from Mike Kaganski <mikekagan...@hotmail.com> ---
The problem appears to happen at the "Save as Template" stage, when the name
entered into the dialog gets written also as the template document's title:

SfxDocTplService_Impl::storeTemplate [1] sets the "DocumentTitle" property;
then it is used in TransformParameters [2] and then in
SfxObjectShell::APISaveAs_Impl [3].

Setting the "DocumentTitle" in [1] was added in commit
72d6767bb2eafee703c429fd1b6fb562ebb43caa, and the need for that wasn't
mentioned there.

[1]
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/doctemplates.cxx?r=0bfa6a18#1774
[2]
https://opengrok.libreoffice.org/xref/core/sfx2/source/appl/appuno.cxx?r=e6de84d4#750
[3]
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objserv.cxx?r=28c31ba1#313

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to