diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-08-21 21:04:26 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-21 21:04:26 +0000 |
commit | b10aff29932d434b3e333f6a92d7d6edf574963d (patch) | |
tree | 04d715dfe02e9a95038f45450288d4316dac92a8 /fxbarcode/pdf417/BC_PDF417.cpp | |
parent | 3cfe89d632315b6bdae3264cc75fc5ed06d36f45 (diff) | |
download | pdfium-b10aff29932d434b3e333f6a92d7d6edf574963d.tar.xz |
Remove excessive padding above and below PDF417 barcodes.
Bug: pdfium:1135
Change-Id: Iea16a65a5eebcb914192eb49de17a2c4eda83320
Reviewed-on: https://pdfium-review.googlesource.com/40690
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417.cpp')
-rw-r--r-- | fxbarcode/pdf417/BC_PDF417.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417.cpp b/fxbarcode/pdf417/BC_PDF417.cpp index d0ecaccf55..084f3a8810 100644 --- a/fxbarcode/pdf417/BC_PDF417.cpp +++ b/fxbarcode/pdf417/BC_PDF417.cpp @@ -506,7 +506,6 @@ void CBC_PDF417::encodeLowLevel(WideString fullCodewords, int32_t idx = 0; for (int32_t y = 0; y < r; y++) { int32_t cluster = y % 3; - logic->startRow(); encodeChar(START_PATTERN, 17, logic->getCurrentRow()); int32_t left; int32_t right; @@ -534,6 +533,7 @@ void CBC_PDF417::encodeLowLevel(WideString fullCodewords, encodeChar(pattern, 17, logic->getCurrentRow()); encodeChar(STOP_PATTERN, 18, logic->getCurrentRow()); } + logic->nextRow(); } } |