[packages/FreeCAD] Another fix

arekm arekm at pld-linux.org
Tue Sep 29 08:03:25 CEST 2026


commit ae66663061ce38697e7d86ef9c3142e0fccba6aa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Sep 29 08:02:53 2026 +0200

    Another fix

 fem-glyph-idtype.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/fem-glyph-idtype.patch b/fem-glyph-idtype.patch
new file mode 100644
index 0000000..7a64c54
--- /dev/null
+++ b/fem-glyph-idtype.patch
@@ -0,0 +1,17 @@
+# vtkIdType is 32-bit on i686/x32, int(1e10) raises OverflowError there
+--- a/src/Mod/Fem/femobjects/post_glyphfilter.py	2026-09-29 00:59:50.426335529 +0200
++++ b/src/Mod/Fem/femobjects/post_glyphfilter.py	2026-09-29 00:59:50.436186758 +0200
+@@ -130,11 +130,11 @@
+         if obj.MaskMode == "Use All":
+             masking.RandomModeOff()
+             masking.SetOnRatio(1)
+-            masking.SetMaximumNumberOfPoints(int(1e10))
++            masking.SetMaximumNumberOfPoints(masking.GetMaximumNumberOfPointsMaxValue())
+         elif obj.MaskMode == "Every Nth":
+             masking.RandomModeOff()
+             masking.SetOnRatio(obj.Stride)
+-            masking.SetMaximumNumberOfPoints(int(1e10))
++            masking.SetMaximumNumberOfPoints(masking.GetMaximumNumberOfPointsMaxValue())
+         else:
+             masking.SetOnRatio(1)
+             masking.SetMaximumNumberOfPoints(obj.MaxNumber)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/FreeCAD.git/commitdiff/ae66663061ce38697e7d86ef9c3142e0fccba6aa



More information about the pld-cvs-commit mailing list