From 1862af42e0b54d3e8c973b5744f24a4e7047812a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 15 Mar 2008 17:23:15 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathHull.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 69facc2692..1665959dc3 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -444,7 +444,6 @@ void InsetMathHull::label(row_type row, docstring const & label) { //lyxerr << "setting label '" << label << "' for row " << row << endl; if (label.empty()) { - nonum_[row] = true; label_[row].clear(); } else label_[row] = label; @@ -688,7 +687,7 @@ docstring InsetMathHull::nicelabel(row_type row) const return docstring(); if (label_[row].empty()) return from_ascii("(#)"); - return '(' + label_[row] + ')'; + return '(' + label_[row] + from_ascii(", #)"); }