Division By Zero in \SilvaDocument\transform\kupu\silva.py
Bug #101513 reported by
Nico Grubert
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Medium
|
Unassigned |
Bug Description
SilvaDocument version: SilvaDocument 1.2.2
When creating tables with the forms editor, from time to time one cannot save
the document in kupu. The traceback:
Module Products.
ZeroDivisionError: integer division or modulo by zero
Module Products.
units = 100 / reduce(
If reduce(
Solution: check if reduce(
Changed in silva: | |
assignee: | nobody → aaltepet |
Changed in silva: | |
assignee: | aaltepet → nobody |
Changed in silva: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Stupid question: how does one set all the relative columns widths
so the sum up to zero?
I have not been able to trigger the bug via edits from the forms editor
(the sum gets zero only if deleting all columns - a case which is handled correctly
by the current code, I think)
I can set all to zero by editing the xml directly, but in that case the
forms editor and kupu fail either.
Any hints how to reproduce this one would be very welcome.
btw the code in qustion seems to be in line 275 for me