Skip to content

Commit

Permalink
Fix WriteLine Error
Browse files Browse the repository at this point in the history
  • Loading branch information
beachtom committed Jan 9, 2024
1 parent ba03814 commit 41704f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web-ifc-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export class IfcAPI {
Log.error(`Cannot re-use deleted express ID`);
return;
}
if (lineObject.expressID != -1 && this.GetLineType(modelID,lineObject.expressID) != lineObject.type && this.GetLineType(modelID,lineObject.expressID) != 0)
if (lineObject.expressID != -1 && lineObject.expressID <= this.GetMaxExpressID(modelID) && this.GetLineType(modelID,lineObject.expressID) != lineObject.type && this.GetLineType(modelID,lineObject.expressID) != 0)
{
Log.error(`Cannot change type of existing IFC Line`);
return;
Expand Down

0 comments on commit 41704f5

Please sign in to comment.