From: Enrico Forestieri Date: Tue, 19 Feb 2019 18:51:11 +0000 (+0100) Subject: Fix bug #11490 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dd80bd9b1797fba05e4c22057f8972c3c948f4ad;p=features.git Fix bug #11490 Correctly add the branch name suffix when the stem of the filename contains a dot. --- 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; }