Enrico Forestieri wrote:
Latest svn. Load any sufficiently long document and scroll it down and up
using the arrow keys. Sooner than later LyX asserts. I get two different
assertions:

Assertion triggered in lyx::Point lyx::CoordCache::get(const lyx::LyXText*, lyx::pit_type) 
const by failing check "posit != it->second.end()" in file 
../../src/coordcache.C:57

and

Assertion triggered in bool lyx::LyXText::deleteEmptyParagraphMechanism(lyx::LCursor&, 
lyx::LCursor&, bool&) by failing check "old.text() == this" in file 
../../src/text2.C:1280

Fixed:

Author: younes
Date: Mon Jan  1 10:59:11 2007
New Revision: 16453

URL: http://www.lyx.org/trac/changeset/16453
Log:
Following depm sanitization, the assertion was bogus when entering an inset.


Modified:
    lyx-devel/trunk/src/text2.C

Modified: lyx-devel/trunk/src/text2.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/text2.C?rev=16453
==============================================================================
--- lyx-devel/trunk/src/text2.C (original)
+++ lyx-devel/trunk/src/text2.C Mon Jan  1 10:59:11 2007
@@ -1281,8 +1281,6 @@
                LCursor & old, bool & need_anchor_change)
 {
//lyxerr[Debug::DEBUG] << "DEPM: cur:\n" << cur << "old:\n" << old << endl;
-       // old should point to us
-       BOOST_ASSERT(old.text() == this);

        Paragraph & oldpar = old.paragraph();




Reply via email to