On Sun, Feb 13, 2005 at 12:17:56PM +0100, Juergen Spitzmueller wrote: > Juergen Spitzmueller wrote: > > 1. open a new document > > 2. insert math inline inset (without entering content) > > 3. leave inline inset (cursor right) > > 4. press space > > > > The whole workarea gets messed up. > > I tried to track down the problem. This is what I have: > In BufferView_pimpl::metrics(), line 1281: > > // Take care of descent of last line > y2 += text->getPar(pit2).descent(); > > getPar(pit2).descent() returns a value of 2147483668, and y2 becomes > -2147483587. > Before step 4 of the test scenario, y2 had a value of 41 and > getPar(pit2).descent() returned 26 so that y2 became 67. > > No idea where the absurd descent() value comes from. > > Ideas?
Uninitialized dimension cache perhaps. I.e. rebreakParagraph() was never called on that paragraph. OTOH this value is close to 2^31, so this might be a signed vs unsigned issue somewhere as well. Andre'