mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Fix the construction of a filepath after r29498. The '/' between the path and suffix was omitted when the path is a directory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29503 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d16c3b4d7c
commit
3045d9b4ff
@ -221,11 +221,11 @@ void FileName::set(string const & name)
|
||||
|
||||
void FileName::set(FileName const & rhs, string const & suffix)
|
||||
{
|
||||
d->name = rhs.d->name + suffix;
|
||||
if (!rhs.d->fi.isDir())
|
||||
d->fi.setFile(rhs.d->fi.filePath() + toqstr(suffix));
|
||||
else
|
||||
d->fi.setFile(QDir(rhs.d->fi.absoluteFilePath()), toqstr(suffix));
|
||||
d->name = fromqstr(d->fi.absoluteFilePath());
|
||||
//LYXERR(Debug::FILES, "FileName::set(" << d->name << ')');
|
||||
LASSERT(empty() || isAbsolute(d->name), /**/);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user