mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Mostly cosmetic changes., but getBibFilesCache should be done on any parameter change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24035 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3fd0f8e7fd
commit
891a62a984
@ -227,7 +227,6 @@ void InsetInclude::setBuffer(Buffer & buffer)
|
||||
// failed to embed
|
||||
setParam("embed", docstring());
|
||||
}
|
||||
|
||||
}
|
||||
InsetCommand::setBuffer(buffer);
|
||||
if (label_)
|
||||
@ -279,7 +278,6 @@ void InsetInclude::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
}
|
||||
setParams(p);
|
||||
buffer().updateBibfilesCache();
|
||||
} else
|
||||
cur.noUpdate();
|
||||
break;
|
||||
@ -303,6 +301,8 @@ void InsetInclude::setParams(InsetCommandParams const & p)
|
||||
|
||||
if (type(params()) == INPUT)
|
||||
add_preview(*preview_, *this, buffer());
|
||||
|
||||
buffer().updateBibfilesCache();
|
||||
}
|
||||
|
||||
|
||||
@ -727,7 +727,7 @@ void InsetInclude::updateBibfilesCache()
|
||||
|
||||
|
||||
EmbeddedFileList const &
|
||||
InsetInclude::getBibfilesCache(Buffer const & buffer) const
|
||||
InsetInclude::getBibfilesCache(Buffer const & buffer) const
|
||||
{
|
||||
Buffer * const tmp = getChildBuffer(buffer, params());
|
||||
if (tmp) {
|
||||
|
Loading…
Reference in New Issue
Block a user