From 196bd6a4b03a8f09eeade689f0132193f3cc932b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 17 Jan 2007 16:17:10 +0000 Subject: [PATCH] * math_hullinset.C (numbered): clear the label when unnumbering (workaround for bug 2556). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16733 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/math_hullinset.C | 2 ++ status.14x | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 2a808239ee..76feef97a0 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2007-01-17 Jean-Marc Lasgouttes + + * math_hullinset.C (numbered): clear the label when unnumbering + (workaround for bug 2556). + 2007-01-16 Enrico Forestieri * src/mathed/math_extern.C (captureOutput): redirect stdin from a file. diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index f0aa28d079..3f79fb9ae2 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -412,6 +412,8 @@ void MathHullInset::label(row_type row, string const & label) void MathHullInset::numbered(row_type row, bool num) { nonum_[row] = !num; + if (nonum_[row]) + label_[row].clear(); } diff --git a/status.14x b/status.14x index f0e235e800..790432a8f8 100644 --- a/status.14x +++ b/status.14x @@ -120,6 +120,8 @@ What's new - Fix an undo crash crash with nested font changes in math (bug 3019). +- Clear label when a formula is unnumbered (bug 2556). + - Disallow pressing the add button in the citation dialog when no citations are available, preventing a crash (bug 3057).