mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
1d57338353
commit
492f394571
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user