summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfannot_embeddertest.cpp
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-06-07 11:31:27 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-07 16:02:17 +0000
commiteda6525eaef97a354e52dbe2e7f454129325d36b (patch)
treec7cde6f6f517b400ef5ad278da61673dbe8e7fe2 /fpdfsdk/fpdfannot_embeddertest.cpp
parent20eafda108cf9b0ab336fb8ab5d83a011f7b8307 (diff)
downloadpdfium-eda6525eaef97a354e52dbe2e7f454129325d36b.tar.xz
Fixing FPDFPage_TransformAnnots
Came across this error in FPDFPage_TransformAnnots, where SetNewAt() would fail on a bound assertion when a newly created array calls it. This CL contains a fix in the function and adds an embedder test for this. Bug=pdfium:745 Change-Id: I569f225598d956d270ef8f11ee3225acf48aadc7 Reviewed-on: https://pdfium-review.googlesource.com/6353 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'fpdfsdk/fpdfannot_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdfannot_embeddertest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfannot_embeddertest.cpp b/fpdfsdk/fpdfannot_embeddertest.cpp
index 1f56d22c28..e1da7cc2cd 100644
--- a/fpdfsdk/fpdfannot_embeddertest.cpp
+++ b/fpdfsdk/fpdfannot_embeddertest.cpp
@@ -153,7 +153,7 @@ TEST_F(FPDFAnnotEmbeddertest, AddFirstTextAnnotation) {
ASSERT_TRUE(page);
EXPECT_EQ(0, FPDFPage_GetAnnotCount(page));
- // Add an underline annotation to the page.
+ // Add a text annotation to the page.
FPDF_ANNOTATION annot;
ASSERT_TRUE(FPDFPage_CreateAnnot(page, FPDF_ANNOT_TEXT, &annot));