]> git.lyx.org Git - features.git/commitdiff
* make forward deletion of formula labels/numbers more intuitive:
authorStefan Schimanski <sts@lyx.org>
Sat, 15 Mar 2008 11:40:04 +0000 (11:40 +0000)
committerStefan Schimanski <sts@lyx.org>
Sat, 15 Mar 2008 11:40:04 +0000 (11:40 +0000)
** 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/trunk@23762 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index b2245a6c5adfd7029f9115f57fab89dfdeb7a591..eef8a32d087a24fc55c68a0f233a72e38d54ae8f 100644 (file)
@@ -491,7 +491,6 @@ void InsetMathHull::label(row_type row, docstring const & label)
        if (label_[row]) {
                if (label.empty()) {
                        delete label_[row];
-                       nonum_[row] = true;
                        label_[row] = dummy_pointer;
                } else
                        label_[row]->updateCommand(label);
@@ -753,7 +752,7 @@ docstring InsetMathHull::nicelabel(row_type row) const
                return docstring();
        if (!label_[row])
                return from_ascii("(#)");
-       return '(' + label_[row]->screenLabel() + ')';
+       return '(' + label_[row]->screenLabel() + from_ascii(", #)");
 }