fix #16 Units for Dimensions

This commit is contained in:
WandererFan
2016-04-28 13:20:31 -04:00
committed by wmayer
parent 5af541e340
commit dc205d37fc
2 changed files with 14 additions and 9 deletions

View File

@@ -235,9 +235,10 @@ void CmdTechDrawNewDimension::activated(int iMsg)
}
std::string contentStr;
if (dimType == "Angle") {
contentStr = "%value%\x00b0";
} else if (dimType == "Radius") {
//if (dimType == "Angle") {
// contentStr = "%value%\x00b0";
//} else
if (dimType == "Radius") {
contentStr = "r%value%";
}
doCommand(Doc,"App.activeDocument().%s.FormatSpec = '%s'",FeatName.c_str()
@@ -803,9 +804,6 @@ void CmdTechDrawNewAngleDimension::activated(int iMsg)
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"Angle");
doCommand(Doc,"App.activeDocument().%s.FormatSpec = '%s'",FeatName.c_str()
,"%value%\u00b0"); // \u00b0 is degree sign
dim = dynamic_cast<TechDraw::DrawViewDimension *>(getDocument()->getObject(FeatName.c_str()));
dim->References2D.setValues(objs, subs);