Upgrade rectangle-packer to 2.0.1; remove bug workaround

This commit is contained in:
Rebecca Breu 2021-05-14 17:21:43 +02:00
parent 34f25d3fb6
commit 6118acedc5
2 changed files with 1 additions and 6 deletions

View file

@ -165,11 +165,6 @@ class BeeGraphicsScene(QtWidgets.QGraphicsScene):
except rpack.PackingImpossibleError:
width = math.ceil(width * 1.2)
if rpack.overlapping(sizes, positions):
# Bug in rpack:
# https://github.com/Penlect/rectangle-packer/issues/13
positions = [(p[1], p[0]) for p in positions]
# We want the items to center around the selection's center,
# not (0, 0)
bounds = rpack.bbox_size(sizes, positions)

View file

@ -10,7 +10,7 @@ setup(
description='A simple reference image viewer',
install_requires=[
'pyQt6>=6.1',
'rectangle-packer>=2.0.0',
'rectangle-packer>=2.0.1',
],
packages=['beeref'],
entry_points={