aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-22 01:48:55 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-22 01:48:55 +0000
commit00223fab51ebcf8a0f069665e18c260193e9114c (patch)
tree932105791d54feb439dd7fd29446afc5a275c9c3 /src/pdf
parentfdaf2b9f8b812b5ca594fd5cdc66c0218ebd8b60 (diff)
[PDF] fix off by one in setPage.
TBR=ctguil@chromium.org Review URL: http://codereview.appspot.com/4807045 git-svn-id: http://skia.googlecode.com/svn/trunk@1939 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf')
-rw-r--r--src/pdf/SkPDFDocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp
index 55aadf4077..71c3784c02 100644
--- a/src/pdf/SkPDFDocument.cpp
+++ b/src/pdf/SkPDFDocument.cpp
@@ -173,7 +173,7 @@ bool SkPDFDocument::setPage(int pageNumber, SkPDFDevice* pdfDevice) {
pageNumber--;
SkASSERT(pageNumber >= 0);
- if (pageNumber > fPages.count()) {
+ if (pageNumber >= fPages.count()) {
int oldSize = fPages.count();
fPages.setCount(pageNumber + 1);
for (int i = oldSize; i <= pageNumber; i++) {