Skip to content

Commit

Permalink
out_dxf: fix empty $DIMBLK
Browse files Browse the repository at this point in the history
and other empty VALUE_TFF.
found via dxf-roundtrip
  • Loading branch information
rurban committed Feb 26, 2025
1 parent 09ded8d commit d09bf01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dxf-roundtrip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# test dwg2dxf via teigha roundtrips
# for f in test/test-data/20*/*.dwg; do ./dxf-roundtrip.sh $f; done
case $(uname) in
Darwin) TeighaFileConverter=/Applications/TeighaFileConverter.app/Contents/MacOS/TeighaFileConverter ;;
Linux) TeighaFileConverter=/usr/bin/TeighaFileConverter ;;
Windows) TeighaFileConverter=TeighaFileConverter ;;
Darwin) ODAFileConverter=/Applications/ODAFileConverter.app/Contents/MacOS/ODAFileConverter ;;
Linux) ODAFileConverter=/usr/bin/ODAFileConverter ;;
Windows) ODAFileConverter=ODAFileConverter ;;
esac
#full=test/test-data/2000/$f.dwg
full=$1
Expand Down Expand Up @@ -43,8 +43,8 @@ programs/dwg2dxf -v4 -o ${f}_${r}.dxf $full 2>${f}_${r}.log ||
grep Error ${f}_${r}.log

mv ${f}_${r}.dxf test/
echo TeighaFileConverter "test" . ACAD$r DWG 0 1 ${f}_${r}.dxf
$TeighaFileConverter "test" "." ACAD$r DWG 0 1 ${f}_${r}.dxf
echo ODAFileConverter "test" . ACAD$r DWG 0 1 ${f}_${r}.dxf
$ODAFileConverter "test" "." ACAD$r DWG 0 1 ${f}_${r}.dxf
mv test/${f}_${r}.dxf ./

if [ -f ${f}_${r}.dwg ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/out_dxf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ dxf_fixup_string (Bit_Chain *restrict dat, char *restrict str, const int opts,
}
}
else
fprintf (dat->fh, "\r\n");
fprintf (dat->fh, "%3d\r\n\r\n", dxf);
}

static int
Expand Down

0 comments on commit d09bf01

Please sign in to comment.