From: Enrico Forestieri Date: Mon, 25 Oct 2010 21:36:25 +0000 (+0000) Subject: Proper fix for #6967 that does not reintroduce #6793 X-Git-Tag: 2.0.0~2244 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f967cd1c459e70c6b28acfd3dbf3a3f9aa52c405;p=features.git Proper fix for #6967 that does not reintroduce #6793 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35841 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 018a71c2e9..4f63949458 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -141,7 +141,7 @@ docstring hullName(HullType type) static InsetLabel * dummy_pointer = 0; InsetMathHull::InsetMathHull(Buffer * buf) - : InsetMathGrid(buf, 1, 1), type_(hullNone), numbered_(1, false), + : InsetMathGrid(buf, 1, 1), type_(hullNone), numbered_(1, true), label_(1, dummy_pointer), preview_(new RenderPreview(this)) { //lyxerr << "sizeof InsetMath: " << sizeof(InsetMath) << endl; @@ -155,7 +155,7 @@ InsetMathHull::InsetMathHull(Buffer * buf) InsetMathHull::InsetMathHull(Buffer * buf, HullType type) - : InsetMathGrid(buf, getCols(type), 1), type_(type), numbered_(1, false), + : InsetMathGrid(buf, getCols(type), 1), type_(type), numbered_(1, true), label_(1, dummy_pointer), preview_(new RenderPreview(this)) { buffer_ = buf; @@ -914,8 +914,7 @@ void InsetMathHull::glueall(HullType type) } } *this = InsetMathHull(buffer_, hullSimple); - if (label) - label_[0] = label; + label_[0] = label; cell(0) = ar; setDefaults(); } @@ -1026,6 +1025,7 @@ void InsetMathHull::mutate(HullType newtype) numbered(0, false); } else { setType(hullEquation); + numbered(0, label_[0] ? true : false); mutate(newtype); } }