On 19-Oct-2001 Jean-Marc Lasgouttes wrote:

> Juergen> Here it definitively displays wrong :(, but it doesn't hang.
> 
> So what is the right way to fix the display here? I am a bit lost.

Mee too!

> We should maybe return a fixed length in this case??

I'll have a look! Maybe we need also the RightMargin, who knows! The
only way we can do this is by debugging! But IMO the problem lies in
the "drawing" got of LyXText::getVisibleRow() not here.

> One thing I did in this code was use LyXText::getRow to find the row

Well I hide my face in shame, we surely should use getRow()
> in which a par/pos is. It seems that it does not return the same
> result as your code... That's very strange, actually. However, I have
> difficulties to find the difference (especially since your code is so
> strange). Can you point out the difference?

Sure getRow is right and I have a wrong algorithm! Anyway I changed it to
use getRow and then also the Problem John reported this morning went away
(well it went away anyway as you didn't use the wrong algorithm in this
case anymore!)

         Jug

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Schlattwhapper, n.:
        The window shade that allows itself to be pulled down,
        hesitates for a second, then snaps up in your face.
                -- Rich Hall, "Sniglets"

Reply via email to