Martin Vermeer wrote:
I believe the culprit is

                if (!singlepar || pit1 == cursor_.pit())

which I added several times to BufferView_pimpl.C:s metrics method. It
tests for being in the paragraph containing the cursor... but I believe
cursor_.pit() refers to the paragraph iterator _inside_ the inset, when
what we need to have here is the paragraph iterator in the surrounding
text which _contains_ this inset (and the cursor).

Anybody know how to do that? cursor_[0].pit() ?

Yes, cursor.pit() is really cursor.top().pit(), so this is the most-nested cursor slice.

You can also use cursor.bottom().pit() to get the outermost one. But zhy
is this the one you need?

JMarc

Reply via email to