diff --git a/tools/lammps-gui/chartviewer.h b/tools/lammps-gui/chartviewer.h index 37a26c8b57..2f458304a4 100644 --- a/tools/lammps-gui/chartviewer.h +++ b/tools/lammps-gui/chartviewer.h @@ -90,7 +90,7 @@ public: int get_index() const { return index; }; int get_count() const { return series->count(); } - const char *get_title() const { return series->name().toLocal8Bit(); } + const char *get_title() const { return series->name().toStdString().c_str(); } double get_step(int index) const { return (index < 0) ? 0.0 : series->at(index).x(); } double get_data(int index) const { return (index < 0) ? 0.0 : series->at(index).y(); }