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

Fix crash on Ubuntu 22.04 (Python 3.10) #1372

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

step305
Copy link

@step305 step305 commented Dec 19, 2023

No description provided.

@@ -827,7 +827,7 @@ def offsetToCenter(self):
aw, ah = area.width(), area.height()
x = (aw - w) / (2 * s) if aw > w else 0
y = (ah - h) / (2 * s) if ah > h else 0
return QtCore.QPointF(x, y)
return QtCore.QPointF(int(x), int(y))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QPointF should support float, so seems something else is wrong.

@wkentaro wkentaro added status: wip-by-author Actions have to be taken by the author. fix pr labels Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr status: wip-by-author Actions have to be taken by the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants