Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions main/HSSF/Model/RecordOrderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,9 @@ public static bool IsEndOfRowBlock(int sid)
case DVALRecord.sid:
return true;
case EOFRecord.sid:
// WINDOW2 should always be present, so shouldn't have got this far
throw new InvalidOperationException("Found EOFRecord before WindowTwoRecord was encountered");
// WINDOW2 should always be present, but there can be files that are non-compliant to spec
// which are automatically fixed when saved again using Excel, so ignoring the problem when reading
return true;
}
return PageSettingsBlock.IsComponentRecord(sid);
}
Expand Down