Skip to content

Commit

Permalink
outdxf: fix dxf_classes_write with no classes
Browse files Browse the repository at this point in the history
Fixes GH #1068
  • Loading branch information
rurban committed Feb 25, 2025
1 parent 17d78ce commit 8c1f67d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/out_dxf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3808,8 +3808,9 @@ dwg_write_dxf (Bit_Chain *restrict dat, Dwg_Data *restrict dwg)
if ((dat->from_version >= R_13b1 && dwg->num_classes)
|| dat->version >= R_2000)
{
if (dxf_classes_write (dat, dwg) >= DWG_ERR_CRITICAL)
goto fail;
if (dwg->num_classes) // GH #1068
if (dxf_classes_write (dat, dwg) >= DWG_ERR_CRITICAL)
goto fail;
}
SINCE (R_2_0)
{
Expand Down

0 comments on commit 8c1f67d

Please sign in to comment.