little sanity check
markt markt
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/FbTk/XmbFontImp.cc
→
src/FbTk/XmbFontImp.cc
@@ -292,6 +292,8 @@ }
#endif // X_HAVE_UTF8_STRING string localestr = text; + if (len > localestr.length()) + len = localestr.length(); localestr.erase(len, string::npos); localestr = FbStringUtil::FbStrToLocale(localestr); XmbTextExtents(m_fontset, localestr.data(), localestr.size(),