On 03/09/2010 01:59 PM, Edwin Leuven wrote:
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;
Do we need then to remove the AtPoint feature from whatever LFUN this
is? What that means is precisely: You can apply this LFUN when not in
the inset but in front of it.
rh