bool changeDepthAllowed(BufferView * bv, LyXText * text, DEPTH_CHANGE type)
{
- if (!bv->available() || !text)
- return false;
-
- return text->changeDepthAllowed(type);
+ return bv->available() && text && text->changeDepthAllowed(type);
}
void changeDepth(BufferView * bv, LyXText * text, DEPTH_CHANGE type)
{
- if (!bv->available() || !text)
- return;
- text->changeDepth(type);
+ if (bv->available() && text)
+ text->changeDepth(type);
}
return string();
if (mathcursor)
- return mathcursor->info();
+ return mathcursor->info(*bv);
ostringstream state;