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
This commit is contained in:
André Pönitz 2002-02-14 13:25:26 +00:00
parent e5fed66b3b
commit 746d3f3db6
3 changed files with 12 additions and 0 deletions

View File

@ -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) MathHullInset::MathHullInset(MathInsetTypes t, col_type cols)
: MathGridInset(cols, 1), objtype_(t), nonum_(1), label_(1) : MathGridInset(cols, 1), objtype_(t), nonum_(1), label_(1)
{ {

View File

@ -21,6 +21,8 @@ public:
/// ///
explicit MathHullInset(MathInsetTypes t); explicit MathHullInset(MathInsetTypes t);
/// ///
MathHullInset(MathInsetTypes t, MathGridInset const & grid);
///
MathHullInset(MathInsetTypes t, col_type cols); MathHullInset(MathInsetTypes t, col_type cols);
/// ///
MathInset * clone() const; MathInset * clone() const;

View File

@ -25,6 +25,9 @@ public:
void metrics(MathMetricsInfo const & st) const; void metrics(MathMetricsInfo const & st) const;
/// ///
void draw(Painter &, int x, int y) const; void draw(Painter &, int x, int y) const;
///
bool needsBraces() const { return false; }
/// ///
void write(WriteStream & os) const; void write(WriteStream & os) const;
/// ///