mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
Fix bug 4772, which was revealed by the removal of the embedding stuff. But the bug itself traces to r22188.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24394 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b47b3a6a3e
commit
2d9a818f37
@ -460,6 +460,7 @@ void GuiGraphics::updateContents()
|
||||
break;
|
||||
}
|
||||
|
||||
lyxerr << fromqstr(bufferFilepath());
|
||||
string const name =
|
||||
igp.filename.outputFilename(fromqstr(bufferFilepath()));
|
||||
filename->setText(toqstr(name));
|
||||
|
@ -854,7 +854,9 @@ DocFileName::DocFileName(FileName const & abs_filename, bool save_abs)
|
||||
void DocFileName::set(string const & name, string const & buffer_path)
|
||||
{
|
||||
FileName::set(name);
|
||||
if (!isAbsolute())
|
||||
bool const nameIsAbsolute = isAbsolute();
|
||||
save_abs_path_ = nameIsAbsolute;
|
||||
if (!nameIsAbsolute)
|
||||
FileName::set(makeAbsPath(name, buffer_path).absFilename());
|
||||
zipped_valid_ = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user