Skip to content
Permalink
Browse files

fix encoding issue in constraint text

  • Loading branch information...
wwmayer committed Dec 2, 2016
1 parent 63aa773 commit 2313b05db54aff2fc4b35a1264967d02e7bb8949
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
@@ -2680,7 +2680,7 @@ void ViewProviderSketch::drawConstraintIcons()
if((*it)->Name.empty())
thisIcon.label = QString::number(constrId + 1);
else
thisIcon.label = QString::fromLatin1((*it)->Name.c_str());
thisIcon.label = QString::fromUtf8((*it)->Name.c_str());
iconQueue.push_back(thisIcon);

// Note that the second translation is meant to be applied after the first.
@@ -2696,11 +2696,12 @@ void ViewProviderSketch::drawConstraintIcons()
thisIcon.destination = dynamic_cast<SoImage *>(sep->getChild(CONSTRAINT_SEPARATOR_INDEX_SECOND_ICON));
thisIcon.infoPtr = static_cast<SoInfo *>(sep->getChild(CONSTRAINT_SEPARATOR_INDEX_SECOND_CONSTRAINTID));
}
else
else {
if ((*it)->Name.empty())
thisIcon.label = QString();
else
thisIcon.label = QString::fromLatin1((*it)->Name.c_str());
thisIcon.label = QString::fromUtf8((*it)->Name.c_str());
}

iconQueue.push_back(thisIcon);
}

0 comments on commit 2313b05

Please sign in to comment.
You can’t perform that action at this time.