>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

>> It is particularly annoying when using instant preview. I failed to
>> find which inset implements this {}, and so I finally gave up...

Andre> MathBraceInset

Thanks. So I guess the patch below is the right fix?

JMarc

Index: src/mathed/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.299
diff -u -p -r1.299 ChangeLog
--- src/mathed/ChangeLog	13 Jan 2003 23:38:01 -0000	1.299
+++ src/mathed/ChangeLog	4 Mar 2003 14:50:47 -0000
@@ -1,3 +1,7 @@
+2003-03-04  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* math_braceinset.C (metrics): fix computation of descent
+
 2003-01-12  Michael Schmitt <[EMAIL PROTECTED]>
 
 	* formula.C (draw, width): Fix spacing around previewed formula.
Index: src/mathed/math_braceinset.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_braceinset.C,v
retrieving revision 1.14
diff -u -p -r1.14 math_braceinset.C
--- src/mathed/math_braceinset.C	2 Aug 2002 14:29:41 -0000	1.14
+++ src/mathed/math_braceinset.C	4 Mar 2003 14:50:47 -0000
@@ -38,7 +38,7 @@ void MathBraceInset::metrics(MathMetrics
 	mathed_char_dim(mi.base.font, '{', t);
 	wid_ = t.w;
 	dim_.a = max(cell(0).ascent(), t.a);
-	dim_.d = max(cell(0).descent(), t.a);
+	dim_.d = max(cell(0).descent(), t.d);
 	dim_.w = cell(0).width() + 2 * wid_;
 }
 

Reply via email to