Skip to content

Commit

Permalink
Temporary workaround for the fractions issue in new imperial unit sch…
Browse files Browse the repository at this point in the history
…ema (using + between inches and fractions)
  • Loading branch information
yorikvanhavre committed Jul 9, 2016
1 parent 79ddfd1 commit 223725c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/UnitsSchemaImperial1.cpp
Expand Up @@ -219,7 +219,7 @@ QString UnitsSchemaImperialBuilding::schemaTranslate(Base::Quantity quant,double
if (inches > 0) {
output << inches;
if (fraction > 0.0625)
output << " ";
output << "+";
else
output << "\"";
}
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Draft/Draft.py
Expand Up @@ -3606,6 +3606,7 @@ def updateData(self, obj, prop):
if FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Units").GetInt("UserSchema",0) == 5:
s = FreeCAD.Units.Quantity(l,FreeCAD.Units.Length).UserString
self.string = s.replace("' ","'- ")
self.string = s.replace("+"," ")
elif hasattr(obj.ViewObject,"Decimals"):
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su)
else:
Expand Down

0 comments on commit 223725c

Please sign in to comment.