Abdelrazak Younes <[EMAIL PROTECTED]> writes:
>> Could you try this patch? I think it works, but since it is a bit
>> lng... The idea is to
>> differentiate the buffer before and after dispatch.
> The buffer should not change for the LFUN handled in
> LyXFunc::dispatch(). If it changes this mean that the LFUN is not
> correctly placed and should be transferred to GuiView.

Well, not really: when one does edit a child document, there is nothing
there which deserves to be in the qt4 directory. And in this case
lyx_view_->buffer() changes value. And since we used that to know which
buffer should be marked dirty, we had a problem.

A (better?) solution would be to move everything that changes the
contents of the buffer in Buffer::dispatch (including the cursor
dispatch), but I am not doing this right now.

I think anyway that the patch as I posted it is safe, but as we know the
devil is in the details.

JMarc

Reply via email to