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

Fixed PSDraw rectangle #6429

Merged
merged 3 commits into from Jul 12, 2022
Merged

Fixed PSDraw rectangle #6429

merged 3 commits into from Jul 12, 2022

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Jul 10, 2022

Resolves #6428

Uses the changes suggested in that issue. I can't see a way to add tests for this.

Moving the neg means that instead of going from (0, 0) to (width, 0), (width, -height), (0, -height) and (0, 0),
it instead goes from (0, 0) to (width, 0), (width, height), (0, height) and (0, 0),
so instead of drawing the rectangle below the starting point, it draws it above.

@radarhere radarhere added the Bug Any unexpected behavior, until confirmed feature. label Jul 10, 2022
@hugovk hugovk merged commit ec0b9ed into python-pillow:main Jul 12, 2022
@radarhere radarhere deleted the psdraw branch July 12, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PSDraw.rectangle produces incorrect PostScript
2 participants