Skip to content

Commit dc7b14f

Browse files
authored
fix a bug when setting barcode-encode within config file
1 parent ec96f36 commit dc7b14f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SplitCode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,8 @@ struct SplitCode {
18281828
this->barcode_prefix = value;
18291829
} else if (field == "@barcode-encode") {
18301830
this->optimize_assignment_str = value;
1831+
FAKE_BARCODE_LEN = FAKE_BARCODE_LEN_DEFAULT + fake_bc_len_offset;
1832+
fake_bc_len_offset = 0;
18311833
} else if (field == "@sub-assign") {
18321834
if (!this->sub_assign_vec.empty()) {
18331835
std::cerr << "Error: The file \"" << config_file << "\" specifies @sub-assign which was already previously set" << std::endl;

0 commit comments

Comments
 (0)