* Partly reverting r22619 by Bo which broke the loading of documents

with graphics like the user guide and the introduction text. I guess
  this is the intended behaviour. If not (and hence enable should do
  something even though the mode does not change), it is a bad design
  IMO. Without this patch some assert was triggered because extract()
  was called although nothing is embedded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22676 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-01-26 00:47:46 +00:00
parent ab1a045d10
commit ce56adcf1e

View File

@ -112,6 +112,9 @@ void EmbeddedFile::setEmbed(bool embed)
void EmbeddedFile::enable(bool flag, Buffer const * buf)
{
if (enabled() == flag)
return;
if (flag) {
temp_path_ = buf->temppath();
if (!suffixIs(temp_path_, '/'))