fix utf8 regression caused by a12ecd49

This commit is contained in:
WandererFan 2016-10-03 20:11:52 -04:00 committed by Yorik van Havre
parent 001bbf52d6
commit 8d139816e3

View File

@ -385,8 +385,8 @@ void CmdTechDrawNewDiameterDimension::activated(int iMsg)
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"Diameter");
doCommand(Doc, "App.activeDocument().%s.FormatSpec = '\xe2\x8c\x80%%value%%'", FeatName.c_str()); // utf-8 encoded diameter symbol
char * format = u8"\xe2\x8c\x80%value%";
doCommand(Doc, "App.activeDocument().%s.FormatSpec = '%s'", FeatName.c_str(),format);
dim = dynamic_cast<TechDraw::DrawViewDimension *>(getDocument()->getObject(FeatName.c_str()));
if (!dim) {