diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index 15d5731413..b7360e9009 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -49,6 +49,7 @@ #include #include #include +#include #include #include "SketchMirrorDialog.h" @@ -584,7 +585,10 @@ void CmdSketcherMapSketch::activated(int iMsg) int iSugg = 0; //index of the auto-suggested mode in the list of valid modes int iCurr = 0; //index of current 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())); + // Get the 2-element vector of caption, tooltip -- this class cannot use the tooltip, + // so it is just ignored. + auto uiStrings = AttacherGui::getUIStrings(AttachEnginePlane::getClassTypeId(), validModes[i]); + items.push_back(uiStrings[0]); if (validModes[i] == curMapMode) { iCurr = items.size() - 1; items.back().append(bCurIncompatible?