mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Backport rev. 23762
Author: sts Date: Sat Mar 15 12:40:04 2008 New Revision: 23762 URL: http://www.lyx.org/trac/changeset/23762 Log: * make forward deletion of formula labels/numbers more intuitive: ** We show (Eq:bla,#) for labeled formulas ** The first forward delete removes the label ** The second forward delete removes the number Fixes http://bugzilla.lyx.org/show_bug.cgi?id=2556 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23765 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ebed03d340
commit
1862af42e0
@ -444,7 +444,6 @@ void InsetMathHull::label(row_type row, docstring const & label)
|
|||||||
{
|
{
|
||||||
//lyxerr << "setting label '" << label << "' for row " << row << endl;
|
//lyxerr << "setting label '" << label << "' for row " << row << endl;
|
||||||
if (label.empty()) {
|
if (label.empty()) {
|
||||||
nonum_[row] = true;
|
|
||||||
label_[row].clear();
|
label_[row].clear();
|
||||||
} else
|
} else
|
||||||
label_[row] = label;
|
label_[row] = label;
|
||||||
@ -688,7 +687,7 @@ docstring InsetMathHull::nicelabel(row_type row) const
|
|||||||
return docstring();
|
return docstring();
|
||||||
if (label_[row].empty())
|
if (label_[row].empty())
|
||||||
return from_ascii("(#)");
|
return from_ascii("(#)");
|
||||||
return '(' + label_[row] + ')';
|
return '(' + label_[row] + from_ascii(", #)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user