diff --git a/common/plotters/PDF_plotter.cpp b/common/plotters/PDF_plotter.cpp index 744c040c7c..578df37527 100644 --- a/common/plotters/PDF_plotter.cpp +++ b/common/plotters/PDF_plotter.cpp @@ -1231,7 +1231,11 @@ bool PDF_PLOTTER::EndPlot() fprintf( m_outputFile, " /A << /Type /Action /S /JavaScript /JS (%s) >>\n" ">>\n", +#ifdef __WXMAC__ js.ToStdString().c_str() ); +#else + TO_UTF8( js ) ); +#endif closePdfObject(); }