Remove pattern fill when setting fill color before drawing a tile

It fixes #21089.
This commit is contained in:
calixteman 2026-04-12 13:08:40 +02:00
parent 5089cceec7
commit 6d3034d4f9
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F
3 changed files with 10 additions and 0 deletions

View File

@ -920,6 +920,7 @@ class TilingPattern {
setFillAndStrokeStyleToContext(graphics, paintType, color) {
const context = graphics.ctx,
current = graphics.current;
current.patternFill = current.patternStroke = false;
switch (paintType) {
case PaintType.COLORED:
const { fillStyle, strokeStyle } = this.ctx;

View File

@ -0,0 +1 @@
https://github.com/user-attachments/files/26655885/stepped.pdf

View File

@ -14097,5 +14097,13 @@
"value": "123"
}
}
},
{
"id": "issue21089",
"file": "pdfs/issue21089.pdf",
"md5": "0ae3954d2f24151dfc36ef717c8afbde",
"link": true,
"rounds": 1,
"type": "eq"
}
]