/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
PainterBase & Painter::text(int x, int y, string const & s, LyXFont const & f)
{
PainterBase & Painter::text(int x, int y, string const & s, LyXFont const & f)
{
- return text(x, y, s.c_str(), s.length(), f);
+ return text(x, y, s.data(), s.length(), f);
if (lyxrc.font_norm_type == LyXRC::ISO_10646_1) {
XChar2b * xs = new XChar2b[ls];
Encoding const * encoding = f.language()->encoding();
if (lyxrc.font_norm_type == LyXRC::ISO_10646_1) {
XChar2b * xs = new XChar2b[ls];
Encoding const * encoding = f.language()->encoding();
underline(f, x, y, lyxfont::width(s, ls, f));
underline(f, x, y, lyxfont::width(s, ls, f));
if (s[i].byte1 == 0 && islower(s[i].byte2)) {
c.byte2 = toupper(s[i].byte2);
lyxfont::XSetFont(display, gc, smallfont);
if (s[i].byte1 == 0 && islower(s[i].byte2)) {
c.byte2 = toupper(s[i].byte2);
lyxfont::XSetFont(display, gc, smallfont);
underline(f, x, y, lyxfont::width(s, ls, f));
underline(f, x, y, lyxfont::width(s, ls, f));