Skip to content

Conversation

@bmjcode
Copy link
Contributor

@bmjcode bmjcode commented Dec 23, 2025

This is caused by PyQt not enforcing C++ integer size restrictions on QPoint coordinates, which we correct for by implementing our own overflow-safe Point type.

Fixes frescobaldi/frescobaldi#2130.

This is caused by PyQt not enforcing C++ integer size restrictions on
QPoint coordinates, which we correct for by implementing our own
overflow-safe Point type.

Fixes frescobaldi/frescobaldi#2130.
@bmjcode
Copy link
Contributor Author

bmjcode commented Dec 23, 2025

Note I deliberately limited changes to scrollarea.py because that's where overflows have been reported to occur. I left other instances of QPoint alone for now to avoid potentially breaking things I'm not certain how to test.

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

Successfully merging this pull request may close these issues.

OverflowError: argument 2 overflowed: value must be in the range -2147483648 to 2147483647

2 participants