Fix default label setting (eq:)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10719 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2006-01-10 12:49:34 +00:00
parent 1d57338353
commit 492f394571
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-01-10 Martin Vermeer <martin.vermeer@hut.fi>
* math_hullinset (doDispatch): fix default label setting (eq:)
2006-01-01 <larsbj@gullik.net>
* command_inset.C (editXY): unused parameters

View File

@ -1046,8 +1046,10 @@ void MathHullInset::doDispatch(LCursor & cur, FuncRequest & cmd)
string old_label = label(r);
string const default_label =
(lyxrc.label_init_length >= 0) ? "eq:" : "";
if (old_label.empty())
old_label = default_label;
string const contents = cmd.argument.empty() ?
label(r) : cmd.argument;
old_label : cmd.argument;
InsetCommandParams p("label", contents);
string const data = InsetCommandMailer::params2string("label", p);