From c3b950483565ca53265a4105a4946585f8b59e24 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 19 Feb 2019 19:51:11 +0100 Subject: [PATCH] Fix bug #11490 Correctly add the branch name suffix when the stem of the filename contains a dot. --- src/Buffer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index ff303a7fa0..dc35734f6c 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -812,10 +812,9 @@ FileName Buffer::Impl::exportFileName() const if (branch_suffix.empty()) return filename; - string const name = filename.onlyFileNameWithoutExt() - + to_utf8(branch_suffix); + string const name = addExtension(filename.onlyFileNameWithoutExt() + + to_utf8(branch_suffix), filename.extension()); FileName res(filename.onlyPath().absFileName() + "/" + name); - res.changeExtension(filename.extension()); return res; } -- 2.39.5