Fix bug #6967: Insert->Display Math should not insert a numbered formula and vice versa.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35799 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-10-24 16:12:22 +00:00
parent 6749b1fa0a
commit 70ed1095ec

View File

@ -141,7 +141,7 @@ docstring hullName(HullType type)
static InsetLabel * dummy_pointer = 0;
InsetMathHull::InsetMathHull(Buffer * buf)
: InsetMathGrid(buf, 1, 1), type_(hullNone), nonum_(1, false),
: InsetMathGrid(buf, 1, 1), type_(hullNone), nonum_(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), nonum_(1, false),
: InsetMathGrid(buf, getCols(type), 1), type_(type), nonum_(1, true),
label_(1, dummy_pointer), preview_(new RenderPreview(this))
{
buffer_ = buf;