summaryrefslogtreecommitdiff
path: root/fxbarcode/datamatrix/BC_X12Encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/datamatrix/BC_X12Encoder.cpp')
-rw-r--r--fxbarcode/datamatrix/BC_X12Encoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxbarcode/datamatrix/BC_X12Encoder.cpp b/fxbarcode/datamatrix/BC_X12Encoder.cpp
index dd8254bff7..9103908b1a 100644
--- a/fxbarcode/datamatrix/BC_X12Encoder.cpp
+++ b/fxbarcode/datamatrix/BC_X12Encoder.cpp
@@ -20,6 +20,8 @@
* limitations under the License.
*/
+#include "fxbarcode/datamatrix/BC_X12Encoder.h"
+
#include "fxbarcode/BC_Dimension.h"
#include "fxbarcode/common/BC_CommonBitMatrix.h"
#include "fxbarcode/datamatrix/BC_C40Encoder.h"
@@ -28,7 +30,6 @@
#include "fxbarcode/datamatrix/BC_HighLevelEncoder.h"
#include "fxbarcode/datamatrix/BC_SymbolInfo.h"
#include "fxbarcode/datamatrix/BC_SymbolShapeHint.h"
-#include "fxbarcode/datamatrix/BC_X12Encoder.h"
CBC_X12Encoder::CBC_X12Encoder() {}
CBC_X12Encoder::~CBC_X12Encoder() {}
@@ -93,9 +94,8 @@ int32_t CBC_X12Encoder::encodeChar(wchar_t c, CFX_WideString& sb, int32_t& e) {
} else if (c >= 'A' && c <= 'Z') {
sb += (wchar_t)(c - 65 + 14);
} else {
- CBC_HighLevelEncoder::illegalCharacter(c, e);
- if (e != BCExceptionNO)
- return -1;
+ e = BCExceptionIllegalArgument;
+ return -1;
}
return 1;
}