diff options
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417.cpp')
-rw-r--r-- | fxbarcode/pdf417/BC_PDF417.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417.cpp b/fxbarcode/pdf417/BC_PDF417.cpp index 9b73b49a26..d0ecaccf55 100644 --- a/fxbarcode/pdf417/BC_PDF417.cpp +++ b/fxbarcode/pdf417/BC_PDF417.cpp @@ -562,14 +562,14 @@ std::vector<int32_t> CBC_PDF417::determineDimensions( } if (dimensions.empty()) { int32_t rows = calculateNumberOfRows(sourceCodeWords, - errorCorrectionCodeWords, m_minCols); + errorCorrectionCodeWords, m_maxCols); if (rows < m_minRows) { dimensions.resize(2); - dimensions[0] = m_minCols; + dimensions[0] = m_maxCols; dimensions[1] = m_minRows; } else if (rows >= 3 && rows <= 90) { dimensions.resize(2); - dimensions[0] = m_minCols; + dimensions[0] = m_maxCols; dimensions[1] = rows; } } |