Temporary workaround for the fractions issue in new imperial unit schema (using + between inches and fractions)
This commit is contained in:
@@ -3606,6 +3606,7 @@ class _ViewProviderDimension(_ViewProviderDraft):
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user