summaryrefslogtreecommitdiff
path: root/fxbarcode/pdf417/BC_PDF417.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-08-23 19:53:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-23 19:53:08 +0000
commit8ce49f8f25e993a31e6abe9e656784abbff0650f (patch)
treef50de084ba32e02b883a6441512a987ebbfcfeed /fxbarcode/pdf417/BC_PDF417.cpp
parent4c47285aab728b7f30ca98cff6593aab57de4077 (diff)
downloadpdfium-8ce49f8f25e993a31e6abe9e656784abbff0650f.tar.xz
Swap width and height params in CBC_BarcodeMatrix constructor.
Change-Id: I74f3a147914c6483e7d443cff70e09115c424ca5 Reviewed-on: https://pdfium-review.googlesource.com/41091 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417.cpp')
-rw-r--r--fxbarcode/pdf417/BC_PDF417.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417.cpp b/fxbarcode/pdf417/BC_PDF417.cpp
index 30b3f42081..ee452422c6 100644
--- a/fxbarcode/pdf417/BC_PDF417.cpp
+++ b/fxbarcode/pdf417/BC_PDF417.cpp
@@ -438,7 +438,7 @@ bool CBC_PDF417::generateBarcodeLogic(WideString msg,
return false;
}
WideString fullCodewords = dataCodewords + ec;
- m_barcodeMatrix = pdfium::MakeUnique<CBC_BarcodeMatrix>(rows, cols);
+ m_barcodeMatrix = pdfium::MakeUnique<CBC_BarcodeMatrix>(cols, rows);
encodeLowLevel(fullCodewords, cols, rows, errorCorrectionLevel,
m_barcodeMatrix.get());
return true;