diff options
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 15da5a5621..db0825af3a 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -785,8 +785,11 @@ void SkPDFDevice::drawPoints(const SkDraw& d, SkCanvas::PointMode mode, } } -void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& r, +void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& rect, const SkPaint& paint) { + SkRect r = rect; + r.sort(); + if (paint.getPathEffect()) { if (d.fClip->isEmpty()) { return; |