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:
Richard Heck 2008-04-20 17:59:14 +00:00
parent b47b3a6a3e
commit 2d9a818f37
2 changed files with 4 additions and 1 deletions

View File

@ -460,6 +460,7 @@ void GuiGraphics::updateContents()
break;
}
lyxerr << fromqstr(bufferFilepath());
string const name =
igp.filename.outputFilename(fromqstr(bufferFilepath()));
filename->setText(toqstr(name));

View File

@ -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;
}