Zero division error when display size set to zero
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenLP | Status tracked in Trunk | |||||
2.0 |
Fix Released
|
Medium
|
Tim Bentley | |||
Trunk |
Fix Released
|
Medium
|
Tim Bentley |
Bug Description
Orriginally reported at: http://
However, I've been able to trigger this by a different method:
Open the "Configure OpenLP" dialog
Set hight or width to 0 for the "Override display position" option
Click ok.
This produces this traceback:
Traceback (most recent call last):
File "D:\OpenLP_
File "D:\OpenLP_
File "D:\OpenLP_
ZeroDivisionError: float division by zero
Related branches
- Andreas Preikschat (community): Approve
- Raoul Snyman: Pending requested
-
Diff: 69 lines (+20/-4)3 files modifiedopenlp/core/ui/generaltab.py (+2/-2)
openlp/core/ui/themeform.py (+2/-2)
openlp/core/utils/__init__.py (+16/-0)
- Andreas Preikschat (community): Approve
-
Diff: 127 lines (+40/-19)3 files modifiedopenlp/core/__init__.py (+1/-1)
openlp/core/ui/exceptionform.py (+38/-17)
openlp/core/ui/formattingtagform.py (+1/-1)
tags: | added: display-rendering support-system |
Although this fix stops the user selecting a display size smaller than 0, it does not appear prevent the bug in the support tracker issue that is attached.