diff --git a/src/Gui/Selection.cpp b/src/Gui/Selection.cpp index f75d3402ec..752ff07667 100644 --- a/src/Gui/Selection.cpp +++ b/src/Gui/Selection.cpp @@ -865,9 +865,9 @@ std::array, 3> schemaTranslatePoint(double x, dou double yuser = fabs(y) > precision ? y / yfactor : 0.0; double zuser = fabs(z) > precision ? z / zfactor : 0.0; - std::array, 3> ret = {std::make_pair(xuser, xunit.toStdString()), - std::make_pair(yuser, yunit.toStdString()), - std::make_pair(zuser, zunit.toStdString())}; + std::array, 3> ret = {std::make_pair(xuser, xunit.toUtf8().constBegin()), + std::make_pair(yuser, yunit.toUtf8().constBegin()), + std::make_pair(zuser, zunit.toUtf8().constBegin())}; return ret; } } @@ -893,7 +893,7 @@ void SelectionSingleton::setPreselectCoord( float x, float y, float z) ,pts[2].first, pts[2].second.c_str()); if (getMainWindow()) - getMainWindow()->showMessage(QString::fromLatin1(buf)); + getMainWindow()->showMessage(QString::fromUtf8(buf)); } void SelectionSingleton::rmvPreselect(bool signal) diff --git a/src/Gui/SoFCSelection.cpp b/src/Gui/SoFCSelection.cpp index 46fcca4e67..67ed645963 100644 --- a/src/Gui/SoFCSelection.cpp +++ b/src/Gui/SoFCSelection.cpp @@ -415,7 +415,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action) ,pts[1].first, pts[1].second.c_str() ,pts[2].first, pts[2].second.c_str()); - getMainWindow()->showMessage(QString::fromLatin1(buf)); + getMainWindow()->showMessage(QString::fromUtf8(buf)); } else { // picked point if (highlighted) { diff --git a/src/Gui/SoFCUnifiedSelection.cpp b/src/Gui/SoFCUnifiedSelection.cpp index a098e6bc1a..8c67e4c966 100644 --- a/src/Gui/SoFCUnifiedSelection.cpp +++ b/src/Gui/SoFCUnifiedSelection.cpp @@ -494,7 +494,7 @@ bool SoFCUnifiedSelection::setHighlight(SoFullPath *path, const SoDetail *det, ,pts[1].first,pts[1].second.c_str() ,pts[2].first,pts[2].second.c_str()); - getMainWindow()->showMessage(QString::fromLatin1(buf)); + getMainWindow()->showMessage(QString::fromUtf8(buf)); int ret = Gui::Selection().setPreselect(docname,objname,element,x,y,z); if(ret<0 && currenthighlight)