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

The guide lines are not long enough when create a rectangle #1518

Open
windwhim opened this issue Nov 27, 2024 · 1 comment
Open

The guide lines are not long enough when create a rectangle #1518

windwhim opened this issue Nov 27, 2024 · 1 comment
Labels
bug issue

Comments

@windwhim
Copy link

Provide environment information

python 3.8

What OS are you using?

Windows

Describe the Bug

The guide lines are not long enough when create a rectangle

Expected Behavior

No response

To Reproduce

No response

@windwhim windwhim added the bug issue label Nov 27, 2024
@windwhim
Copy link
Author

This is due to the wrong length in Canvas.
I changed the code p.drawLine(0,int(self.prevMovePoint.y()),self.width()-1,int(self.prevMovePoint.y())) in the draw crosshair to p.drawLine(0,int(self.prevMovePoint.y()),int(self.pixmap.width()-1),int(self.prevMovePoint.y())), and similarly changed the p.drawLine(int(self.prevMovePoint.x()),0,int(self.prevMovePoint.x()),self.height()-1) to p.drawLine(int(self.prevMovePoint.x()),0,int(self.prevMovePoint.x()),int(self.pixmap.height()-1)). And the problem was solved.
Hope the bug can be solved sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue
Projects
None yet
Development

No branches or pull requests

1 participant