mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* 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:
parent
ab1a045d10
commit
ce56adcf1e
@ -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_, '/'))
|
||||
|
Loading…
Reference in New Issue
Block a user