diff options
Diffstat (limited to 'src/FbTk/XmbFontImp.cc')
-rw-r--r-- | src/FbTk/XmbFontImp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/XmbFontImp.cc b/src/FbTk/XmbFontImp.cc index 7613a40..8f2bdf9 100644 --- a/src/FbTk/XmbFontImp.cc +++ b/src/FbTk/XmbFontImp.cc | |||
@@ -204,7 +204,7 @@ void XmbFontImp::drawText(const FbDrawable &d, int screen, GC main_gc, const cha | |||
204 | } else | 204 | } else |
205 | #endif //X_HAVE_UTF8_STRING | 205 | #endif //X_HAVE_UTF8_STRING |
206 | { | 206 | { |
207 | std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, 0, len)); | 207 | std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, len)); |
208 | XmbDrawString(d.display(), d.drawable(), m_fontset, | 208 | XmbDrawString(d.display(), d.drawable(), m_fontset, |
209 | main_gc, x, y, | 209 | main_gc, x, y, |
210 | localestr.data(), localestr.size()); | 210 | localestr.data(), localestr.size()); |
@@ -241,7 +241,7 @@ void XmbFontImp::drawText(const FbDrawable &d, int screen, GC main_gc, const cha | |||
241 | } else | 241 | } else |
242 | #endif //X_HAVE_UTF8_STRING | 242 | #endif //X_HAVE_UTF8_STRING |
243 | { | 243 | { |
244 | std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, 0, len)); | 244 | std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, len)); |
245 | XmbDrawString(dpy, canvas.drawable(), m_fontset, | 245 | XmbDrawString(dpy, canvas.drawable(), m_fontset, |
246 | font_gc.gc(), xpos, ypos, | 246 | font_gc.gc(), xpos, ypos, |
247 | localestr.data(), localestr.size()); | 247 | localestr.data(), localestr.size()); |