From 70ed1095ec07d8e5d95e6a313adac755faa340c2 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 24 Oct 2010 16:12:22 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathHull.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index c0225c754c..feefa87f04 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), 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; -- 2.39.2