Skip to content

Commit 03e16ec

Browse files
erfansnrurban
authored andcommitted
Fix not obtaining the next owned entity when the ordering changed
GH PR #1117
1 parent bd0fbf8 commit 03e16ec

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
@@ -1267,7 +1267,7 @@ get_next_owned_entity (const Dwg_Object *restrict hdr,
12671267
{
12681268
Dwg_Object *obj;
12691269
if (_hdr->last_entity == NULL
1270-
|| current->handle.value >= _hdr->last_entity->absolute_ref)
1270+
|| current == _hdr->last_entity->obj)
12711271
return NULL;
12721272
obj = dwg_next_entity (current);
12731273
while (obj

0 commit comments

Comments
 (0)