From 7a602f4d09dcd9544207b1d24996a79ab8cc4d74 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 4 Mar 2003 19:01:17 +0000 Subject: [PATCH] trivialities git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6342 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 8bdb9e11eb..4051ba8c92 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -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; -- 2.39.2