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
This commit is contained in:
Abdelrazak Younes 2007-04-18 09:59:02 +00:00
parent 7a3600ac0a
commit ab13c59979

View File

@ -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;