Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Index: src/mathed/math_macrotemplate.C | =================================================================== | --- src/mathed/math_macrotemplate.C (revision 14714) | +++ src/mathed/math_macrotemplate.C (working copy) | @@ -112,7 +113,12 @@ void MathMacroTemplate::metrics(MetricsI | { | cell(0).metrics(mi); | cell(1).metrics(mi); | - docstring dp(prefix().begin(), prefix().end()); | + string pref = prefix(); | + vector<char> utf8pref(pref.begin(), pref.end()); | + vector<uint32_t> ucs4pref = | + utf8_to_ucs4(vector<char>(utf8pref.begin(), | + utf8pref.end()));
vector<uint32_t> ucs4pref = utf8_to_ucs4(pref.data(), pref.length()); | + docstring dp(ucs4pref.begin(), ucs4pref.end()); | dim.wid = cell(0).width() + cell(1).width() + 20 | + font_metrics::width(dp, mi.base.font); | dim.asc = std::max(cell(0).ascent(), cell(1).ascent()) + 7; -- Lgb