sw/source/ui/dbui/mmresultdialogs.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 29db6427ea6e3f24fbacfd6ac053231106518749 Author: Aditya <adityasahu1...@gmail.com> AuthorDate: Thu Jan 31 04:42:09 2019 +0530 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sat Feb 2 06:50:39 2019 +0100 tdf#109120 : Mailmerge filenames starting with 1 (one) Merged documents when saved as individual documents, the filenames start from 0. This patch provides a fix for this as it introduces natural numbering of documents (starting from 1) rather than the previous 0-based numbering when saving individual merged documents. e.g. mergedfile_1, mergedfile_2 and so on. Change-Id: I67275656455788bb5ae935d7d42a349aa0510b36 Reviewed-on: https://gerrit.libreoffice.org/66658 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index dfde81645aa8..318229fa3104 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -638,7 +638,7 @@ IMPL_LINK_NOARG(SwMMResultSaveDialog, SaveOutputHdl_Impl, weld::Button&, void) pTargetView->GetWrtShell().EndAction(); //then save it OUString sOutPath = aURL.GetMainURL(INetURLObject::DecodeMechanism::ToIUri); - OUString sCounter = "_" + OUString::number(nDoc); + OUString sCounter = "_" + OUString::number(nDoc + 1); sOutPath = sOutPath.replaceAt( sOutPath.getLength() - sExtension.getLength() - 1, 0, sCounter); while(true) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits