mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
Fix bug #11490
Correctly add the branch name suffix when the stem of the filename contains a dot.
This commit is contained in:
parent
2ae51b947b
commit
c3b9504835
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user