Skip to content

Commit

Permalink
fixed enless while()-loop for pre 2004 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofbikes committed Jan 8, 2022
1 parent e23cc1c commit b38e2aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intern/dwgreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ bool dwgReader::readDwgBlocks(DRW_Interface& intfa, dwgBuffer *dbuf){
while (nextH != 0){
mit = ObjectMap.find(nextH);
if (mit==ObjectMap.end()) {
nextH = bkr->lastEH;//end while if entity not foud
nextH = 0;//end while if entity not found
DRW_DBG("\nWARNING: Entity of block not found\n");
ret = false;
continue;
Expand Down Expand Up @@ -839,7 +839,7 @@ bool dwgReader::readPlineVertex(DRW_Polyline& pline, dwgBuffer *dbuf){
while (nextH != 0){
auto mit = ObjectMap.find(nextH);
if (mit==ObjectMap.end()) {
nextH = pline.lastEH;//end while if entity not foud
nextH = 0;//end while if entity not found
DRW_DBG("\nWARNING: pline vertex not found\n");
ret = false;
continue;
Expand Down

0 comments on commit b38e2aa

Please sign in to comment.