mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-25 08:27:19 +02:00
Remove pattern fill when setting fill color before drawing a tile
It fixes #21089.
This commit is contained in:
parent
5089cceec7
commit
6d3034d4f9
@ -920,6 +920,7 @@ class TilingPattern {
|
|||||||
setFillAndStrokeStyleToContext(graphics, paintType, color) {
|
setFillAndStrokeStyleToContext(graphics, paintType, color) {
|
||||||
const context = graphics.ctx,
|
const context = graphics.ctx,
|
||||||
current = graphics.current;
|
current = graphics.current;
|
||||||
|
current.patternFill = current.patternStroke = false;
|
||||||
switch (paintType) {
|
switch (paintType) {
|
||||||
case PaintType.COLORED:
|
case PaintType.COLORED:
|
||||||
const { fillStyle, strokeStyle } = this.ctx;
|
const { fillStyle, strokeStyle } = this.ctx;
|
||||||
|
|||||||
1
test/pdfs/issue21089.pdf.link
Normal file
1
test/pdfs/issue21089.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/user-attachments/files/26655885/stepped.pdf
|
||||||
@ -14097,5 +14097,13 @@
|
|||||||
"value": "123"
|
"value": "123"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue21089",
|
||||||
|
"file": "pdfs/issue21089.pdf",
|
||||||
|
"md5": "0ae3954d2f24151dfc36ef717c8afbde",
|
||||||
|
"link": true,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user