Do you want to request a feature or report a bug?
Did you test against the latest CI build?
Version of ClosedXML
e.g. 0.104.1 nuget package
What is the current behavior?
I have an Excel file with notes or comments in it. When I try to open a spreadsheet it throw an exception 'Length cannot be less than zero. (Parameter 'length')'. The error is related to the definition of internal margins of the text box. The XML structure has a textbox attribute, and it has an inset attribute with the value inset="2.16pt,1.44pt, 0, 0".
What is the expected behavior or new feature?
The excel should open without throwing an exception
Is this a regression from the previous version?
no
Reproducibility
Excel file: file.xlsx
Code to reproduce problem:
using ClosedXML.Excel;
public static void Main(string[] args)
{
using var wb = new XLWorkbook("file.xlsx");
}