The bug happens when there is some text "a" immediately after a footnote
(tying in with when the drawing width problem happens).

In checkInsetHit :

    895                 Inset * tmpinset = cursor.par()->getInset(cursor.pos()-1);
    896                 LyXFont font = text->getFont(buffer_, cursor.par(),
    897                                                   cursor.pos() - 1);
    898                 int const width = tmpinset->width(bv_, font);
    899                 lyxerr << "DITH is " << width << endl;
    900                 int const inset_x = font.isVisibleRightToLeft()
    901                         ? cursor.x() : cursor.x() - width;
    902                 lyxerr << "inset x is " << inset_x << endl;
    903                 lyxerr << "cursor x is " << cursor.x() << endl;

cursor.x() is returning what I assume is the magic value "20", giving it
totally the wrong range for x, failing the test below.

What is the 20 actually supposed to do ? Why does the cursor.x() think its
position is 20 ?

john

-- 
How many Bavarian Illuminati does it take to screw in a lightbulb?

Three: one to screw it in, and one to confuse the issue. 

Reply via email to