Skip to content

Commit

Permalink
Upgrade ClosedXML to 0.97 (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pankraty authored Jan 7, 2023
1 parent f8fe88b commit 1a925c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ClosedXML.Report/ClosedXML.Report.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ClosedXML" Version="0.96.0" />
<PackageReference Include="ClosedXML" Version="0.97.0" />
<PackageReference Include="morelinq" Version="3.3.2" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.20" />
</ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions ClosedXML.Report/Options/ImageTag.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Drawing;
using System.IO;
using System.IO;
using ClosedXML.Excel.Drawings;
using ClosedXML.Report.Utils;

Expand Down Expand Up @@ -31,7 +30,6 @@ public override void Execute(ProcessingContext context)
case null: return;
case Stream stream: picture = xlCell.Worksheet.AddPicture(stream); break;
case string path: picture = xlCell.Worksheet.AddPicture(path); break;
case Bitmap image: picture = xlCell.Worksheet.AddPicture(image); break;
default: throw new TemplateParseException("Unsupported image type.", xlCell.AsRange());
};
picture.MoveTo(xlCell);
Expand Down
1 change: 0 additions & 1 deletion tests/ClosedXML.Report.Tests/ClosedXML.Report.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="34.0.2" />
<PackageReference Include="ClosedXML" Version="0.96.0" />
<PackageReference Include="DocumentFormat.OpenXml" Version="2.16.0" />
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="linq2db" Version="4.3.0" />
Expand Down
4 changes: 2 additions & 2 deletions tests/ClosedXML.Report.Tests/ReportOptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public void ColsFit_option_should_FitWidth()
wb =>
{
var worksheet = wb.Worksheet(1);
worksheet.Column(4).Width.Should().BeInRange(4.969999, 497009);
worksheet.Column(5).Width.Should().BeInRange(13.57999, 13.58001);
worksheet.Column(4).Width.Should().BeApproximately(5.03, 0.01);
worksheet.Column(5).Width.Should().BeApproximately(13.61, 0.01);
});
}

Expand Down

0 comments on commit 1a925c2

Please sign in to comment.