This patch actually compiles.
Georg
Index: src/mathed/MathSupport.C =================================================================== --- src/mathed/MathSupport.C (Revision 15354) +++ src/mathed/MathSupport.C (Arbeitskopie) @@ -383,18 +383,14 @@ int mathed_char_width(LyXFont const & fo void mathed_string_dim(LyXFont const & font, string const & s, Dimension & dim) { lyx::frontend::FontMetrics const & fm = theFontMetrics(font); -#if 1 + // FIXME UNICODE + docstring const ds = lyx::from_utf8(s); dim.asc = 0; dim.des = 0; - for (string::const_iterator it = s.begin(); it != s.end(); ++it) { + for (docstring::const_iterator it = ds.begin(); it != ds.end(); ++it) { dim.asc = max(dim.asc, fm.ascent(*it)); dim.des = max(dim.des, fm.descent(*it)); } -#else - dim.asc = fm.maxAscent(); - dim.des = fm.maxDescent(); -#endif - docstring ds(s.begin(), s.end()); dim.wid = fm.width(ds); }