From ab13c59979d4818495a97a702abf559651ff9c1b Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 18 Apr 2007 09:59:02 +0000 Subject: [PATCH] commit again the drawing fix of revision 17826. This was accidentally reverted in revision 17841. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17849 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathMacro.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathMacro.C b/src/mathed/InsetMathMacro.C index 087aa80807..0731acfb63 100644 --- a/src/mathed/InsetMathMacro.C +++ b/src/mathed/InsetMathMacro.C @@ -172,8 +172,8 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const tmpl_.draw(pi, x + w + 12, h); h += tmpl_.descent(); Dimension ldim; - string t = "#1: "; - mathed_string_dim(font, name(), ldim); + docstring t = from_ascii("#1: "); + mathed_string_dim(font, t, ldim); for (idx_type i = 0; i < nargs(); ++i) { MathArray const & c = cell(i); h += max(c.ascent(), ldim.asc) + 5; -- 2.39.2