trivialities

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6342 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-03-04 19:01:17 +00:00
parent ea878552c4
commit 7a602f4d09

View File

@ -796,12 +796,17 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
case LFUN_DIALOG_SHOW_NEW_INSET: {
string const & name = argument;
string data;
if (name == "ref") {
RefInset tmp;
string const data = tmp.createDialogStr(name);
bv->owner()->getDialogs().show(name, data, 0);
} else
RefInset tmp(name);
data = tmp.createDialogStr(name);
}
if (data.empty())
result = UNDISPATCHED;
else {
bv->owner()->getDialogs().show(name, data, 0);
}
}
break;