Skip to content

Commit 309fc50

Browse files
erfansnrurban
authored andcommitted
Fix not obtaining the next owned entity when the ordering changed
GH PR #1117
1 parent b0616cc commit 309fc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dwg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ get_next_owned_entity (const Dwg_Object *restrict hdr,
12681268
{
12691269
Dwg_Object *obj;
12701270
if (_hdr->last_entity == NULL
1271-
|| current->handle.value >= _hdr->last_entity->absolute_ref)
1271+
|| current == _hdr->last_entity->obj)
12721272
return NULL;
12731273
obj = dwg_next_entity (current);
12741274
while (obj

0 commit comments

Comments
 (0)