mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
trivialities
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6342 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ea878552c4
commit
7a602f4d09
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user