From 746d3f3db6cceedcaa03bc1a7bb39a19f99542a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 14 Feb 2002 13:25:26 +0000 Subject: [PATCH] another case of superfluous braces on read-back git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3536 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_hullinset.C | 7 +++++++ src/mathed/math_hullinset.h | 2 ++ src/mathed/math_sizeinset.h | 3 +++ 3 files changed, 12 insertions(+) diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 0e0db0d0d0..49928c5de5 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -100,6 +100,13 @@ MathHullInset::MathHullInset(MathInsetTypes t) } +MathHullInset::MathHullInset(MathInsetTypes t, MathGridInset const & grid) + : MathGridInset(grid), objtype_(t), nonum_(1), label_(1) +{ + setDefaults(); +} + + MathHullInset::MathHullInset(MathInsetTypes t, col_type cols) : MathGridInset(cols, 1), objtype_(t), nonum_(1), label_(1) { diff --git a/src/mathed/math_hullinset.h b/src/mathed/math_hullinset.h index c2747fb14e..35c63f12a2 100644 --- a/src/mathed/math_hullinset.h +++ b/src/mathed/math_hullinset.h @@ -21,6 +21,8 @@ public: /// explicit MathHullInset(MathInsetTypes t); /// + MathHullInset(MathInsetTypes t, MathGridInset const & grid); + /// MathHullInset(MathInsetTypes t, col_type cols); /// MathInset * clone() const; diff --git a/src/mathed/math_sizeinset.h b/src/mathed/math_sizeinset.h index 9fefc55db0..d9e992e27d 100644 --- a/src/mathed/math_sizeinset.h +++ b/src/mathed/math_sizeinset.h @@ -25,6 +25,9 @@ public: void metrics(MathMetricsInfo const & st) const; /// void draw(Painter &, int x, int y) const; + /// + bool needsBraces() const { return false; } + /// void write(WriteStream & os) const; ///