Commit 1fa9e9e
committed
fix: skip widgets with empty or infinite rects in remove_rotation
remove_rotation() calls widget.update() on every widget, but widgets
with empty or infinite rects (like invisible signature fields) cause
ValueError('bad rect') during validation.
Skip these widgets and also guard widget.update() with a try/except
for any remaining edge cases.
Fixes #49501 parent 564f14d commit 1fa9e9e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11913 | 11913 | | |
11914 | 11914 | | |
11915 | 11915 | | |
| 11916 | + | |
| 11917 | + | |
11916 | 11918 | | |
11917 | | - | |
| 11919 | + | |
| 11920 | + | |
| 11921 | + | |
| 11922 | + | |
11918 | 11923 | | |
11919 | 11924 | | |
11920 | 11925 | | |
| |||
0 commit comments