mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-15 04:32:14 +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())
|
if (branch_suffix.empty())
|
||||||
return filename;
|
return filename;
|
||||||
|
|
||||||
string const name = filename.onlyFileNameWithoutExt()
|
string const name = addExtension(filename.onlyFileNameWithoutExt()
|
||||||
+ to_utf8(branch_suffix);
|
+ to_utf8(branch_suffix), filename.extension());
|
||||||
FileName res(filename.onlyPath().absFileName() + "/" + name);
|
FileName res(filename.onlyPath().absFileName() + "/" + name);
|
||||||
res.changeExtension(filename.extension());
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user