Draft: fix trailing whitespace

This commit is contained in:
luzpaz
2023-01-22 14:08:28 +00:00
committed by Uwe
parent 6173d48da7
commit 5fa4482504
21 changed files with 64 additions and 64 deletions

View File

@@ -50,22 +50,22 @@ class Rectangle(DraftObject):
_tip = QT_TRANSLATE_NOOP("App::Property", "Radius to use to fillet the corners")
obj.addProperty("App::PropertyLength", "FilletRadius", "Draft", _tip)
_tip = QT_TRANSLATE_NOOP("App::Property", "Size of the chamfer to give to the corners")
obj.addProperty("App::PropertyLength", "ChamferSize", "Draft", _tip)
_tip = QT_TRANSLATE_NOOP("App::Property", "Create a face")
obj.addProperty("App::PropertyBool", "MakeFace", "Draft", _tip)
_tip = QT_TRANSLATE_NOOP("App::Property", "Horizontal subdivisions of this rectangle")
obj.addProperty("App::PropertyInteger", "Rows", "Draft", _tip)
_tip = QT_TRANSLATE_NOOP("App::Property", "Vertical subdivisions of this rectangle")
obj.addProperty("App::PropertyInteger", "Columns", "Draft", _tip)
_tip = QT_TRANSLATE_NOOP("App::Property", "The area of this object")
obj.addProperty("App::PropertyArea", "Area", "Draft", _tip)
obj.MakeFace = get_param("fillmode",True)
obj.Length=1
obj.Height=1
@@ -83,7 +83,7 @@ class Rectangle(DraftObject):
plm = obj.Placement
shape = None
if hasattr(obj,"Rows") and hasattr(obj,"Columns"):
# TODO: verify if this is needed:
if obj.Rows > 1:
@@ -157,7 +157,7 @@ class Rectangle(DraftObject):
shape = Part.Face(shape)
else:
shape = Part.Face(shape)
obj.Shape = shape
if hasattr(obj,"Area") and hasattr(shape,"Area"):