diff --git a/src/Mod/Arch/ArchProfile.py b/src/Mod/Arch/ArchProfile.py index 303152dea4..2a9d230376 100644 --- a/src/Mod/Arch/ArchProfile.py +++ b/src/Mod/Arch/ArchProfile.py @@ -59,7 +59,7 @@ def readPresets(): for profilefile in profilefiles: if os.path.exists(profilefile): try: - with open(profilefile, "rb") as csvfile: + with open(profilefile, "r") as csvfile: beamreader = csv.reader(csvfile) bid=1 #Unique index for row in beamreader: diff --git a/src/Mod/Arch/ArchRebar.py b/src/Mod/Arch/ArchRebar.py index e27a04c8da..01a09e6ce1 100644 --- a/src/Mod/Arch/ArchRebar.py +++ b/src/Mod/Arch/ArchRebar.py @@ -296,10 +296,10 @@ class _Rebar(ArchComponent.Component): shapes = [] placementlist = [] if obj.Amount == 1: - barplacement = CalculatePlacement(obj.Amount, 1, size, axis, father.Placement.Rotation, obj.OffsetStart.Value, obj.OffsetEnd.Value) - placementlist.append(barplacement) - if hasattr(obj,"Spacing"): - obj.Spacing = 0 + barplacement = CalculatePlacement(obj.Amount, 1, size, axis, father.Placement.Rotation, obj.OffsetStart.Value, obj.OffsetEnd.Value) + placementlist.append(barplacement) + if hasattr(obj,"Spacing"): + obj.Spacing = 0 else: if obj.OffsetStart.Value: baseoffset = DraftVecUtils.scaleTo(axis,obj.OffsetStart.Value) diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 65c476f00a..b392e1741f 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -30,7 +30,7 @@ if FreeCAD.GuiUp: from PySide.QtCore import QT_TRANSLATE_NOOP else: # \cond - def translate(ctxt,txt): + def translate(ctxt,txt, utf8_decode=False): return txt def QT_TRANSLATE_NOOP(ctxt,txt): return txt