On Wed, Oct 22, 2003 at 07:57:08AM +0100, Jose' Matos spake thusly:
 
> On Wednesday 22 October 2003 07:23, Martin Vermeer wrote:
> > On Wed, Oct 22, 2003 at 01:03:34AM +0300, Martin Vermeer spake thusly:
> > > If nobody shouts, I'l check this in tomorrow morning. So LyX CVS works
> > > again...
> > >
> > > - Martin
> >
> > It's in now, with Lars's comment formatting point taken. Please shout
> > if you *now* get '...is a bit silly' warnings. The assert shouldn't be
> > triggered at all.
> 
>   You are right, I don't get an assert this time is real, it is a crash. ;-)
> (gdb) run
> Starting program: /home/jamatos/lyx/lyx-devel/src/lyx-xforms
> text not available!
> no text in cache!

...

> #1  0x0811050e in Paragraph::isNewline(int) const ()
> #2  0x0812e5f7 in LyXText::prepareToPrint(std::_List_iterator<Paragraph, 

Yes, this is a different problem. I get it too now, but not yesterday
evening. Here:

   1480             // If we have separators, this is not the last row of a
   1481             // par, does not end in newline, and is not row above a
   1482             // display inset... then stretch it
   1483             if (ns
   1484                 && rit->end() < pit->size()
   1485                 && !pit->isNewline(next_row->pos()- 1)
   1486                 && !disp_inset
   1487                 ) {
   1488                     fill_separator = w / ns;
   1489             } else if (is_rtl) {
   1490                 x += w;
   1491             }

It crashed on the isNewline() on line 1485, because next_row->pos()
seems to contain nonsense (it should point to the first char of this
row within its par). Adding a printout confirms this: either 0 or a
very large value.
 
> > Sorry for the mess.
> 
>   No problem, and it best to detect earlier than later. :-)

Luckily I am pretty sure this is not my doing ;-) 

André ?!?

 
> -- 
> José Abílio

- Martin 

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to