On Fri, Sep 23, 2005 at 08:59:26AM -0400, Bennett Helm wrote: > On Sep 22, 2005, at 5:57 PM, Martin Vermeer wrote:
...
> This patch does not help typing in footnotes, TeX Code, or other
> insets (margin pars, minipages, LyX notes, etc.). Insets within
> insets work, but are predictably slow as well.
The reason is this in text3.C:
needsUpdate = cur.paragraph().dim().asc != olddim.asc ||
cur.paragraph().dim().des != olddim.des ||
cur.paragraph().inInset(); <----
Was forced to add that, as my new code rendered wrong/not at all with text
inside an inset.
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() ?
- Martin
pgpsqAU2TtMui.pgp
Description: PGP signature
