Pavel Sanda wrote:
Vincent van Ravesteijn - TNW wrote:
other bug you would like to see killed?
Insert a table, put the cursor in front of the table, press set all
lines on the table toolbar.. Crash.
table guys? Ed, Uwe?
because with the cursor in front of a tabular, 'inset' in the code below
points to the tabular, the toolbar buttons get enabled, clicking them
calls a function but we are not in the correct inset. boom.
?
bool Cursor::getStatus(FuncRequest const & cmd, FuncStatus & status) const
{
Cursor cur = *this;
// Try to fix cursor in case it is broken.
cur.fixIfBroken();
// Is this a function that acts on inset at point?
Inset * inset = cur.nextInset();
if (lyxaction.funcHasFlag(cmd.action, LyXAction::AtPoint)
&& inset && inset->getStatus(cur, cmd, status))
return true;
...