Skip to content

Commit

Permalink
further improvement reading non LibreCAD DXF files
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofbikes committed Mar 14, 2021
1 parent 736ca40 commit c420c48
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libdxfrw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,12 @@ bool dxfRW::processDxf() {
return true; //found EOF terminate
}
}
else {
// in case SECTION was unknown or not supported
if ("ENDSEC" == reader->getString()) {
inSection = false;
}
}
break;

case 2:
Expand Down Expand Up @@ -1936,6 +1942,8 @@ bool dxfRW::processDxf() {
continue;

default:
// landing here means an unknown or not supported SECTION
inSection = false;
break;
}
}
Expand Down

0 comments on commit c420c48

Please sign in to comment.