From: Stefan Schimanski Date: Sat, 15 Mar 2008 11:40:04 +0000 (+0000) Subject: * make forward deletion of formula labels/numbers more intuitive: X-Git-Tag: 1.6.10~5610 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=685970043ebc8dbb27b180fc2ddebee9a3629515;p=features.git * 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/trunk@23762 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index b2245a6c5a..eef8a32d08 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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(", #)"); }