Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroDivisionError on recalculation #119

Open
nonZero opened this issue Oct 3, 2024 · 0 comments
Open

ZeroDivisionError on recalculation #119

nonZero opened this issue Oct 3, 2024 · 0 comments

Comments

@nonZero
Copy link

nonZero commented Oct 3, 2024

On regenerate, version 1.4.8

Traceback (most recent call last):
  File "/home/udi/code/PhotoCollage/photocollage/gtkgui.py", line 366, in regenerate_layout
    self.render_from_new_collage(new_collage)
  File "/home/udi/code/PhotoCollage/photocollage/gtkgui.py", line 361, in render_from_new_collage
    self.render_preview()
  File "/home/udi/code/PhotoCollage/photocollage/gtkgui.py", line 316, in render_preview
    collage.page.adjust_cols_heights()
  File "/home/udi/code/PhotoCollage/photocollage/collage.py", line 550, in adjust_cols_heights
    c.adjust_height(target_h)
  File "/home/udi/code/PhotoCollage/photocollage/collage.py", line 340, in adjust_height
    alpha = group.h / sum(c.h for c in group.cells)
            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ZeroDivisionError: float division by zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant