From a916f7f917ced99afeb7a2b5b0b840be5a9b8fc9 Mon Sep 17 00:00:00 2001 From: Kolya Kosenko Date: Wed, 2 Mar 2016 14:10:00 +0100 Subject: [PATCH] Fix wxX11 build with wxUSE_STL=1 Add missing utf8_str() call as implicit conversion is not available in wxUSE_STL=1 case (notice that this also makes wxUSE_STL=0 work correctly when not using UTF-8 locale). Closes #17412. --- src/x11/dcclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/dcclient.cpp b/src/x11/dcclient.cpp index 7fba49e97c..92dd10d9d4 100644 --- a/src/x11/dcclient.cpp +++ b/src/x11/dcclient.cpp @@ -1679,7 +1679,7 @@ void wxWindowDCImpl::DoDrawRotatedText(const wxString& text, // and wxWidgets is counter clock, so plus minus. cairo_rotate(cr, -angle * (M_PI / 180)); - cairo_show_text(cr, text); + cairo_show_text(cr, text.utf8_str()); cairo_restore(cr); cairo_destroy(cr); }