Am Sonntag, 12. November 2006 12:05 schrieb Abdelrazak Younes:
> [EMAIL PROTECTED] wrote:
> > Author: younes
> > Date: Sun Nov 12 12:03:55 2006
> > New Revision: 15876
> >
> > URL: http://www.lyx.org/trac/changeset/15876
> > Log:
> > - coordOffset(): add an assertion on par.rows() emptiness before
> > accessing it and a FIXME.
>
> Opinion?
>
> > Modified:
> >     lyx-devel/trunk/src/bufferview_funcs.C
> >
> > Modified: lyx-devel/trunk/src/bufferview_funcs.C
> > URL:
> > http://www.lyx.org/trac/file/lyx-devel/trunk/src/bufferview_funcs.C?rev=1
> >5876
> > =========================================================================
> >===== --- lyx-devel/trunk/src/bufferview_funcs.C (original)
> > +++ lyx-devel/trunk/src/bufferview_funcs.C Sun Nov 12 12:03:55 2006
> > @@ -177,6 +177,8 @@
> >     // Add contribution of initial rows of outermost paragraph
> >     CursorSlice const & sl = dit[0];
> >     Paragraph const & par = sl.text()->getPar(sl.pit());
> > +   // FIXME: I wonder if a case exists where this could happen:
> > +   BOOST_ASSERT(!par.rows().empty());
> >     y -= par.rows()[0].ascent();
> >  #if 1
> >     size_t rend;

Very easy to reproduce this here:

Program received signal SIGABRT, Aborted.
[Switching to Thread 1087020320 (LWP 22933)]
0xffffe410 in ?? ()
(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbfffdd88 in ?? ()
#2  0x00000006 in ?? ()
#3  0x00005995 in ?? ()
#4  0x40bb9d41 in raise () from /lib/tls/libc.so.6
#5  0x40bbb529 in abort () from /lib/tls/libc.so.6
#6  0x084f3e6b in lyx::support::abort ()
#7  0x080d090e in boost::assertion_failed ()
#8  0x08115805 in lyx::bv_funcs::coordOffset ()
#9  0x08115ae8 in lyx::bv_funcs::getPos ()
#10 0x0812d53e in lyx::LCursor::getPos ()
#11 0x083478bf in lyx::frontend::WorkArea::showCursor ()
#12 0x0834798b in lyx::frontend::WorkArea::toggleCursor ()
...

1 Start lyx
2 open a File which is at say 3 screen pages sized.
3 go to page 2
4 select new window
5 move pointer into the newly created window (here the new window has 
different size, because of the previous session)
6 move pointer back to the first window
        ==> crash

        Kornel
-- 
Kornel Benko
[EMAIL PROTECTED]

Attachment: pgpx1atlUAUQB.pgp
Description: PGP signature

Reply via email to