From 1315e5f02637b5ae757e932888a3ab0dd2e5da2d Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Thu, 1 Nov 2007 10:58:59 +0000 Subject: [PATCH] * non-const coercion for math braces git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21325 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMath.h | 1 + src/mathed/InsetMathBrace.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMath.h b/src/mathed/InsetMath.h index 3226d13111..af6f35a629 100644 --- a/src/mathed/InsetMath.h +++ b/src/mathed/InsetMath.h @@ -112,6 +112,7 @@ public: virtual InsetMathAMSArray const * asAMSArrayInset() const { return 0; } virtual InsetMathArray * asArrayInset() { return 0; } virtual InsetMathArray const * asArrayInset() const { return 0; } + virtual InsetMathBrace * asBraceInset() { return 0; } virtual InsetMathBrace const * asBraceInset() const { return 0; } virtual InsetMathChar const * asCharInset() const { return 0; } virtual InsetMathDelim * asDelimInset() { return 0; } diff --git a/src/mathed/InsetMathBrace.h b/src/mathed/InsetMathBrace.h index 984d12f335..6a90397e6a 100644 --- a/src/mathed/InsetMathBrace.h +++ b/src/mathed/InsetMathBrace.h @@ -25,7 +25,9 @@ public: InsetMathBrace(); /// InsetMathBrace(MathData const & ar); - /// + /// identifies brace insets + InsetMathBrace * asBraceInset() { return this; } + /// identifies brace insets InsetMathBrace const * asBraceInset() const { return this; } /// we write extra braces in any case... bool extraBraces() const { return true; } -- 2.39.2