X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89efaf2b6595e59af618556d7e79492cab50c73c..d84e6f500ee7c9e8c7d305f78a5c9c764c74b1c0:/src/gtk/print.cpp diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index 4c77554f19..563e214334 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -1700,7 +1700,7 @@ void wxGtkPrinterDCImpl::DoDrawRotatedText(const wxString& text, wxCoord x, wxCo bool underlined = m_font.Ok() && m_font.GetUnderlined(); - const wxUTF8Buf data = text.utf8_str(); + const wxScopedCharBuffer data = text.utf8_str(); size_t datalen = strlen(data); pango_layout_set_text( m_layout, data, datalen); @@ -2102,7 +2102,7 @@ void wxGtkPrinterDCImpl::DoGetTextExtent(const wxString& string, wxCoord *width, cairo_scale(m_cairo, m_scaleX, m_scaleY); // Set layout's text - const wxUTF8Buf dataUTF8 = string.utf8_str(); + const wxScopedCharBuffer dataUTF8 = string.utf8_str(); gint oldSize=0; if ( theFont )