Skip to content

Commit d5511da

Browse files
committed
dotcode: Fix AST
1 parent aa290f3 commit d5511da

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/render.ps.src

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,15 +604,18 @@ begin
604604
>>
605605

606606
/gs1dotcode <<
607-
/gs1.sst12.trade << /xmin 0.380 /xnom 0.380 /xmax 0.990 >>
607+
/default << /xmin 0.380 /xnom 0.380 /xmax 0.990 >>
608+
/gs1.sst12.trade 1 index % << /xmin 0.380 /xnom 0.380 /xmax 0.990 >>
608609
>>
609610

610611
/gs1dldatamatrix <<
611612
/default << /xmin 0.396 /xnom 0.495 /xmax 0.743 >>
613+
/gs1.sst1.dl 1 index % << /xmin 0.396 /xnom 0.495 /xmax 0.743 >>
612614
>>
613615

614616
/gs1dlqrcode <<
615617
/default << /xmin 0.396 /xnom 0.495 /xmax 0.743 >>
618+
/gs1.sst1.dl 1 index % << /xmin 0.396 /xnom 0.495 /xmax 0.743 >>
616619
>>
617620

618621
% ISO/AIM symbology defaults (non-GS1)

tests/ps_tests/gs1dotcode.ps.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{ 4001 string (dontdraw) gs1dotcode } /bwipp.gs1dotcodeinputTooLong isError
3939

4040
% physspec smoke test
41-
{ 0 0 moveto (\(235\)5vBZIF%!<B;?oa%\(01\)09521234543213\(8008\)19052001) (rows=16 physspec xdim=0.330) gs1dotcode true } true isEqual
41+
{ 0 0 moveto (\(235\)5vBZIF%!<B;?oa%\(01\)09521234543213\(8008\)19052001) (rows=16 physspec xdim=0.380) gs1dotcode true } true isEqual
4242

4343
% AST bounds (gs1.sst12.trade): xdim below xmin (0.380) fails
4444
{ (\(01\)09521234543213) (dontdraw physspec ast=gs1.sst12.trade xdim=0.300) gs1dotcode } /bwipp.renderXdimTooSmall isError

0 commit comments

Comments
 (0)