mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Make sure the origin tag is properly terminated.
This commit is contained in:
parent
d80fa17175
commit
71ff50b753
@ -1015,11 +1015,11 @@ void BufferParams::writeFile(ostream & os, Buffer const * buf) const
|
|||||||
// The top of the file is written by the buffer.
|
// The top of the file is written by the buffer.
|
||||||
// Prints out the buffer info into the .lyx file given by file
|
// Prints out the buffer info into the .lyx file given by file
|
||||||
|
|
||||||
// the document directory
|
// the document directory (must end with a path separator)
|
||||||
// use realPath() instead of absFileName() for comparing
|
// realPath() is used to resolve symlinks, while addPath(..., "")
|
||||||
// so we can catch also eventually used symbolic parts of the path.
|
// ensures a trailing path separator.
|
||||||
string filepath = buf->fileName().onlyPath().realPath();
|
string filepath = addPath(buf->fileName().onlyPath().realPath(), "");
|
||||||
string const sysdir = package().system_support().realPath();
|
string const sysdir = addPath(package().system_support().realPath(), "");
|
||||||
string const relpath =
|
string const relpath =
|
||||||
to_utf8(makeRelPath(from_utf8(filepath), from_utf8(sysdir)));
|
to_utf8(makeRelPath(from_utf8(filepath), from_utf8(sysdir)));
|
||||||
if (!prefixIs(relpath, "../") && !FileName::isAbsolute(relpath))
|
if (!prefixIs(relpath, "../") && !FileName::isAbsolute(relpath))
|
||||||
|
Loading…
Reference in New Issue
Block a user