From bfba5ea12ede841ce0298600603620c549e201b2 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 25 May 2024 22:04:37 +0200 Subject: [PATCH] BIM: Fixed decimal separator error - Fixes #14208 (#14229) --- src/Mod/BIM/bimcommands/BimViews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/bimcommands/BimViews.py b/src/Mod/BIM/bimcommands/BimViews.py index dab8ad606d..50352a6c72 100644 --- a/src/Mod/BIM/bimcommands/BimViews.py +++ b/src/Mod/BIM/bimcommands/BimViews.py @@ -442,7 +442,7 @@ def getTreeViewItem(obj): lvHStr = FreeCAD.Units.Quantity( obj.Elevation, FreeCAD.Units.Length ).UserString - lvH = round(float(lvHStr.split(" ")[0]), 2) + lvH = round(float(lvHStr.replace(",",".").split(" ")[0]), 2) it = QtGui.QTreeWidgetItem([obj.Label, lvHStr]) it.setFlags(it.flags() | QtCore.Qt.ItemIsEditable) it.setToolTip(0, obj.Name)