Stefan Schimanski wrote:

Am 24.11.2008 um 17:49 schrieb Richard Heck:

Jürgen Spitzmüller wrote:
Richard Heck wrote:

This would do, in the sense that it'll get the result we want. But let
me try to explain the problem again. The function loadIfNeeded() is
called for every single keypress, mouse press, or whatever, for every
InsetInclude.
Hm, this is a problem in itself, I'd say.


That doesn't look so bad, though we should bring Stefan S into the discussion. This happens because updateMacros checks all the InsetInclude's to make sure their files are loaded.

I don't think it is only a macro thing. Isn't the updateLabels mechanism doing that also to get the labels right?

Yes, you are right about that. There's a call to getChildBuffer() in InsetInclude::updateLabels() that would also have tried to load the child buffer and fail in the same situation.

So it looks like we can't change that.

Richard

Reply via email to