Skip to content

Commit 1a925c2

Browse files
authored
Upgrade ClosedXML to 0.97 (#301)
1 parent f8fe88b commit 1a925c2

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

ClosedXML.Report/ClosedXML.Report.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</PropertyGroup>
5151

5252
<ItemGroup>
53-
<PackageReference Include="ClosedXML" Version="0.96.0" />
53+
<PackageReference Include="ClosedXML" Version="0.97.0" />
5454
<PackageReference Include="morelinq" Version="3.3.2" />
5555
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.20" />
5656
</ItemGroup>

ClosedXML.Report/Options/ImageTag.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Drawing;
2-
using System.IO;
1+
using System.IO;
32
using ClosedXML.Excel.Drawings;
43
using ClosedXML.Report.Utils;
54

@@ -31,7 +30,6 @@ public override void Execute(ProcessingContext context)
3130
case null: return;
3231
case Stream stream: picture = xlCell.Worksheet.AddPicture(stream); break;
3332
case string path: picture = xlCell.Worksheet.AddPicture(path); break;
34-
case Bitmap image: picture = xlCell.Worksheet.AddPicture(image); break;
3533
default: throw new TemplateParseException("Unsupported image type.", xlCell.AsRange());
3634
};
3735
picture.MoveTo(xlCell);

tests/ClosedXML.Report.Tests/ClosedXML.Report.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
<ItemGroup>
2727
<PackageReference Include="Bogus" Version="34.0.2" />
28-
<PackageReference Include="ClosedXML" Version="0.96.0" />
2928
<PackageReference Include="DocumentFormat.OpenXml" Version="2.16.0" />
3029
<PackageReference Include="FluentAssertions" Version="6.7.0" />
3130
<PackageReference Include="linq2db" Version="4.3.0" />

tests/ClosedXML.Report.Tests/ReportOptionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public void ColsFit_option_should_FitWidth()
5151
wb =>
5252
{
5353
var worksheet = wb.Worksheet(1);
54-
worksheet.Column(4).Width.Should().BeInRange(4.969999, 497009);
55-
worksheet.Column(5).Width.Should().BeInRange(13.57999, 13.58001);
54+
worksheet.Column(4).Width.Should().BeApproximately(5.03, 0.01);
55+
worksheet.Column(5).Width.Should().BeApproximately(13.61, 0.01);
5656
});
5757
}
5858

0 commit comments

Comments
 (0)