Il 23/05/2011 21:34, Tommaso Cucinotta ha scritto:
Il 23/05/2011 14:50, Abdel Younes ha scritto:

Maybe the solution is to create a special EmbeddedBuffer class that will constantly refer to the document Buffer (const access to the params, ref cache, etc). EmbeddedBuffer would inherit Buffer and would offer only const access to the params/etc.

The problem might be then when the user inserts a citation (bibliography environment) into the Find/Replace WAs (because you would try to modify those const-access items/caches).

Ok, here I've got something completely different (see attached patch): simply use the main document's buffer(), when scanning for citations from within the dialog. I checked that also the ReferenceGui (for labels) makes something like that, even though indirectly because in that case there's a combo box on the top allowing the user to choose which buffer should be scanned for labels.

This seems to work fine for me, should I commit ?

I took the freedom to commit as r38847. Now it Just Works :-)!

    T.

Reply via email to