From 685970043ebc8dbb27b180fc2ddebee9a3629515 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Sat, 15 Mar 2008 11:40:04 +0000 Subject: [PATCH] * 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 --- 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 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(", #)"); } -- 2.39.2