Add status message.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34150 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-04-16 08:18:28 +00:00
parent 98f106f2ca
commit 499908ebab

View File

@ -3238,8 +3238,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
} }
int row = doc_buffer->texrow().getRowFromIdPos(bv->cursor().paragraph().id(), bv->cursor().pos()); int row = doc_buffer->texrow().getRowFromIdPos(bv->cursor().paragraph().id(), bv->cursor().pos());
if (!row || command.empty()) if (!row || command.empty()) {
dr.setMessage(_("Couldn't proceed."));
break; break;
}
string texrow = convert<string>(row); string texrow = convert<string>(row);
command = subst(command, "$$n", texrow); command = subst(command, "$$n", texrow);