Skip to content

Commit d817d22

Browse files
author
Kazuki Suzuki Przyborowski
committed
Small bug fix
1 parent e3bad90 commit d817d22

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

upcean/encode/codabar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def encode_codabar_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48
271271
LineTxtStart += (1 * int(resize))
272272
while (NumTxtZero < len(upc_matches)):
273273
texthidden = False
274-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
274+
if hidetext:
275275
texthidden = True
276276
if(not texthidden):
277277
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/code11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def encode_code11_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48,
230230
LineTxtStart += (1 * int(resize))
231231
while (NumTxtZero < len(upc_print)):
232232
texthidden = False
233-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
233+
if hidetext:
234234
texthidden = True
235235
if(not texthidden):
236236
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/code32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def encode_code32_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48,
271271
LineTxtStart += (1 * int(resize))
272272
while (NumTxtZero < len(upc_matches)):
273273
texthidden = False
274-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
274+
if hidetext:
275275
texthidden = True
276276
if(not texthidden):
277277
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/code39.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def encode_code39_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48,
300300
LineTxtStartNorm += 15
301301
while (NumTxtZero < len(upc_matches)):
302302
texthidden = False
303-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
303+
if hidetext:
304304
texthidden = True
305305
if(not texthidden):
306306
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (
@@ -634,7 +634,7 @@ def encode_code39extended_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barhei
634634
else:
635635
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (
636636
barheight[0] * int(resize)), code39extended.get(upc_matches[NumTxtZero], upc_matches[NumTxtZero]), barcolor[1], "ocrb", imageoutlib)
637-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
637+
if hidetext:
638638
texthidden = True
639639
if(not texthidden):
640640
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/code93.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def encode_code93_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48,
301301
LineTxtStart += (1 * int(resize))
302302
while (NumTxtZero < len(upc_matches)):
303303
texthidden = False
304-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
304+
if hidetext:
305305
texthidden = True
306306
if(not texthidden):
307307
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (
@@ -636,7 +636,7 @@ def encode_code93extended_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barhei
636636
else:
637637
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (
638638
barheight[0] * int(resize)), code93extended.get(upc_matches[NumTxtZero], upc_matches[NumTxtZero]), barcolor[1], "ocrb", imageoutlib)
639-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
639+
if hidetext:
640640
texthidden = True
641641
if(not texthidden):
642642
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/itf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def encode_itf_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54
297297
while (NumTxtZero < len(upc_matches)):
298298
ArrayDigit = list(upc_matches[NumTxtZero])
299299
texthidden = False
300-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
300+
if hidetext:
301301
texthidden = True
302302
if(not texthidden):
303303
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/itf14.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def encode_itf14_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48,
305305
while (NumTxtZero < len(upc_matches)):
306306
ArrayDigit = list(upc_matches[NumTxtZero])
307307
texthidden = False
308-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
308+
if hidetext:
309309
texthidden = True
310310
if(not texthidden):
311311
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/msi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def encode_msi_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54
211211
LineTxtStart += (1 * int(resize))
212212
while (NumTxtZero < len(upc_print)):
213213
texthidden = False
214-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
214+
if hidetext:
215215
texthidden = True
216216
if(not texthidden):
217217
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/plessey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def encode_plessey_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48
239239
LineTxtStart += (1 * int(resize))
240240
while (NumTxtZero < len(upc_matches)):
241241
texthidden = False
242-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
242+
if hidetext:
243243
texthidden = True
244244
if(not texthidden):
245245
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

upcean/encode/stf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def encode_stf_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54
248248
LineTxtStart += (1 * int(resize))
249249
while (NumTxtZero < len(upc_matches)):
250250
texthidden = False
251-
if hidetext or (NumTxtZero == 0 and (hidesn is None or hidesn)) or (NumTxtZero == 11 and (hidecd is None or hidecd)):
251+
if hidetext:
252252
texthidden = True
253253
if(not texthidden):
254254
drawColorText(upc_img, 10 * int(resize * barwidth[1]), LineTxtStart * barwidth[0], vertical_text_fix + (

0 commit comments

Comments
 (0)