summaryrefslogtreecommitdiff
path: root/fxbarcode
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode')
-rw-r--r--fxbarcode/datamatrix/BC_EncoderContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fxbarcode/datamatrix/BC_EncoderContext.cpp b/fxbarcode/datamatrix/BC_EncoderContext.cpp
index d9823bffe2..f5c2f4c1fc 100644
--- a/fxbarcode/datamatrix/BC_EncoderContext.cpp
+++ b/fxbarcode/datamatrix/BC_EncoderContext.cpp
@@ -44,6 +44,7 @@ CBC_EncoderContext::CBC_EncoderContext(const WideString& msg,
sb += ch;
}
m_msg = sb;
+ m_codewords.Reserve(m_msg.GetLength());
m_allowRectangular = true;
m_newEncoding = -1;
m_pos = 0;