Index: dm/DMPDFTask.cpp |
diff --git a/dm/DMPDFTask.cpp b/dm/DMPDFTask.cpp |
index 81fd307c0d8b535fc80f47c1925679f987b7fb5a..7d1fa5924d417d4588020ec92ecfa6b7a70cce73 100644 |
--- a/dm/DMPDFTask.cpp |
+++ b/dm/DMPDFTask.cpp |
@@ -76,7 +76,7 @@ void PDFTask::draw() { |
fGM->draw(pdf.canvas()); |
pdfData.reset(pdf.end()); |
} else { |
- SinglePagePDF pdf(SkIntToScalar(fPicture->width()), SkIntToScalar(fPicture->height())); |
+ SinglePagePDF pdf(fPicture->cullRect().width(), fPicture->cullRect().height()); |
fPicture->draw(pdf.canvas()); |
pdfData.reset(pdf.end()); |
} |