]> git.lyx.org Git - lyx.git/commitdiff
* math_hullinset.C (numbered): clear the label when unnumbering
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 17 Jan 2007 16:18:02 +0000 (16:18 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 17 Jan 2007 16:18:02 +0000 (16:18 +0000)
(workaround for bug 2556).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16734 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.C

index fc979083db21770fcd53713260f0d380ca40a0e9..b9c2b241fb174a0cf5f9dc8bf2cc5c16573e1803 100644 (file)
@@ -438,6 +438,8 @@ void InsetMathHull::label(row_type row, docstring const & label)
 void InsetMathHull::numbered(row_type row, bool num)
 {
        nonum_[row] = !num;
+       if (nonum_[row])
+               label_[row].clear();
 }