From: Abdelrazak Younes Date: Fri, 20 Oct 2006 16:11:30 +0000 (+0000) Subject: Fix multiple tabular crashes. This needs some more work by someone who knows what... X-Git-Tag: 1.6.10~12309 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7450a293deb4513f64d0d67831129ff671c1fe07;p=features.git Fix multiple tabular crashes. This needs some more work by someone who knows what insettabular::resetPos() is for. At least navigating and editing tables seems "normal". git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15412 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index d5e6dd5c0d..5b12c948ac 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -478,7 +478,7 @@ void InsetTabular::edit(LCursor & cur, bool left) cur.pit() = 0; cur.pos() = cur.lastpos(); // FIXME crude guess } - // this accesses the position cache before it is initialized + // FIXME: this accesses the position cache before it is initialized //resetPos(cur); //cur.bv().fitCursor(); } @@ -783,7 +783,8 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd) break; } - resetPos(cur); + // FIXME: this accesses the position cache before it is initialized + //resetPos(cur); InsetTabularMailer(*this).updateDialog(&cur.bv()); } @@ -1302,7 +1303,9 @@ void InsetTabular::movePrevCell(LCursor & cur) } cur.pit() = cur.lastpit(); cur.pos() = cur.lastpos(); - resetPos(cur); + + // FIXME: this accesses the position cache before it is initialized + //resetPos(cur); }