Skip to content

Fixed PSDraw rectangle#6429

Merged
hugovk merged 3 commits intopython-pillow:mainfrom
radarhere:psdraw
Jul 12, 2022
Merged

Fixed PSDraw rectangle#6429
hugovk merged 3 commits intopython-pillow:mainfrom
radarhere:psdraw

Conversation

@radarhere
Copy link
Copy Markdown
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