mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
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
This commit is contained in:
parent
de102c1cf3
commit
7450a293de
@ -478,7 +478,7 @@ void InsetTabular::edit(LCursor & cur, bool left)
|
|||||||
cur.pit() = 0;
|
cur.pit() = 0;
|
||||||
cur.pos() = cur.lastpos(); // FIXME crude guess
|
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);
|
//resetPos(cur);
|
||||||
//cur.bv().fitCursor();
|
//cur.bv().fitCursor();
|
||||||
}
|
}
|
||||||
@ -783,7 +783,8 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
resetPos(cur);
|
// FIXME: this accesses the position cache before it is initialized
|
||||||
|
//resetPos(cur);
|
||||||
InsetTabularMailer(*this).updateDialog(&cur.bv());
|
InsetTabularMailer(*this).updateDialog(&cur.bv());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1302,7 +1303,9 @@ void InsetTabular::movePrevCell(LCursor & cur)
|
|||||||
}
|
}
|
||||||
cur.pit() = cur.lastpit();
|
cur.pit() = cur.lastpit();
|
||||||
cur.pos() = cur.lastpos();
|
cur.pos() = cur.lastpos();
|
||||||
resetPos(cur);
|
|
||||||
|
// FIXME: this accesses the position cache before it is initialized
|
||||||
|
//resetPos(cur);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user