Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/in_dxf.c
Original file line number Diff line number Diff line change
Expand Up @@ -11718,13 +11718,18 @@ dxf_tables_read (Bit_Chain *restrict dat, Dwg_Data *restrict dwg)
Dwg_Object *ctrl = &dwg->object[ctrl_id];
char *dxfname = strdup (pair->value.s);
BITCODE_H ref;
int realloced;
dxf_free_pair (pair);
// until 0 table or 0 ENDTAB
pair = new_object (table, dxfname, dat, dwg, ctrl_id, (BITCODE_BL*)&i);
if (!pair)
return DWG_ERR_INVALIDDWG;
obj = &dwg->object[dwg->num_objects - 1];
// A minimal DXF will have no handle values
realloced = dwg_add_object(dwg);
if (realloced == -1) {
ctrl = &dwg->object[ctrl_id];
}
if (!obj->handle.value)
{
unsigned long next_handle = dwg_next_handle (dwg);
Expand Down
Loading