Index: src/doc/SkDocument_PDF.cpp |
diff --git a/src/doc/SkDocument_PDF.cpp b/src/doc/SkDocument_PDF.cpp |
index bc91a969e68826c5266d2e7941440902364c7648..834cbc3a96ded17bc16c2ae2a21b4258ca9fcff8 100644 |
--- a/src/doc/SkDocument_PDF.cpp |
+++ b/src/doc/SkDocument_PDF.cpp |
@@ -44,8 +44,8 @@ protected: |
fDevice->setRasterDpi(fRasterDpi); |
} |
fCanvas = SkNEW_ARGS(SkCanvas, (fDevice)); |
+ fCanvas->clipRect(trimBox); |
fCanvas->translate(trimBox.x(), trimBox.y()); |
- fCanvas->clipRect(SkRect::MakeWH(trimBox.width(), trimBox.height())); |
return fCanvas; |
} |