diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index 084413d6f2..978997afc4 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -178,7 +178,8 @@ void CmdSketcherNewSketch::activated(int iMsg) items.push_back(QObject::tr("Don't attach")); int iSugg = 0;//index of the auto-suggested mode in the list of valid modes for (size_t i = 0 ; i < validModes.size() ; ++i){ - items.push_back(QString::fromLatin1(AttachEngine::getModeName(validModes[i]).c_str())); + auto uiStrings = AttacherGui::getUIStrings(AttachEnginePlane::getClassTypeId(), validModes[i]); + items.push_back(uiStrings[0]); if (validModes[i] == mapmode) iSugg = items.size()-1; }