Skip to content

Commit

Permalink
EPPlus version 6.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKallman committed Apr 17, 2023
1 parent 376c9f3 commit 45d5f04
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
version: 6.2.1.{build}
version: 6.2.2.{build}
branches:
only:
- develop
configuration: release
image: Visual Studio 2022
init:
- ps: >-
Update-AppveyorBuild -Version "6.2.1.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
Update-AppveyorBuild -Version "6.2.2.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
Write-Host "6.2.1.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
Write-Host "6.2.2.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
assembly_version: 6.2.1.{build}
file_version: 6.2.1.{build}
assembly_version: 6.2.2.{build}
file_version: 6.2.2.{build}
nuget:
project_feed: true
before_build:
Expand Down
8 changes: 8 additions & 0 deletions docs/articles/fixedissues.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Features / Fixed issues - EPPlus 6
## Version 6.2.2
### Fixed issues
* Insert row did not update formula cells correctly in some cases.
* Copying a worksheet to another workbook sometimes doesn't copy the correct style.
* Creating a sparkline group with an ExcelAddress caused a corrupt workbook.
* Datavalidations with a ImeMode property set, throw an exception on save.
* Datavalidations sometimes caused a corrupt workbook when used with slicers and sparklines (extLst).

## Version 6.2.1
### Fixed issues
* Having data validations referring to other worksheets could break the xml causing the workbook to become corrupt.
Expand Down
8 changes: 4 additions & 4 deletions src/EPPlus/Core/Worksheet/WorksheetRangeInsertHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,10 @@ private static void FixFormulasInsertRow(ExcelWorksheet ws, int rowFrom, int row
private static SourceCodeTokenizer _sct = new SourceCodeTokenizer(FunctionNameProvider.Empty, NameValueProvider.Empty);
private static IEnumerable<Token> GetTokens(ExcelWorksheet ws, int row, int column, string formula)
{
if(string.IsNullOrEmpty(formula)) return new List<Token>();
var tokens = (List<Token>)_sct.Tokenize(formula, ws.Name);
return tokens;
return string.IsNullOrEmpty(formula) ?
new List<Token>() :
(List<Token>)_sct.Tokenize(formula, ws.Name);
}

private static void FixFormulasInsertColumn(ExcelWorksheet ws, int columnFrom, int columns)
{
foreach (var wsToUpdate in ws.Workbook.Worksheets)
Expand All @@ -796,6 +795,7 @@ private static void FixFormulasInsertColumn(ExcelWorksheet ws, int columnFrom, i
{
a._toCol += columns;
}

f.Address = ExcelCellBase.GetAddress(a._fromRow, a._fromCol, a._toRow, a._toCol);
f.Formula = ExcelCellBase.UpdateFormulaReferences(f.Formula, 0, columns, 0, columnFrom, wsToUpdate.Name, ws.Name);
}
Expand Down
18 changes: 11 additions & 7 deletions src/EPPlus/EPPlus.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0;net6.0;netstandard2.1;netstandard2.0;net462;net35</TargetFrameworks>
<AssemblyVersion>6.2.1.0</AssemblyVersion>
<FileVersion>6.2.1.0</FileVersion>
<Version>6.2.1</Version>
<AssemblyVersion>6.2.2.0</AssemblyVersion>
<FileVersion>6.2.2.0</FileVersion>
<Version>6.2.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://epplussoftware.com</PackageProjectUrl>
<Authors>EPPlus Software AB</Authors>
Expand All @@ -18,7 +18,7 @@
<PackageReadmeFile>readme.md</PackageReadmeFile>
<Copyright>EPPlus Software AB</Copyright>
<PackageReleaseNotes>
EPPlus 6.2.1
EPPlus 6.2.2

IMPORTANT NOTICE!
From version 5 EPPlus changes the license model using a dual license, Polyform Non Commercial / Commercial license.
Expand All @@ -29,9 +29,12 @@
## Version 6.2.1
* Bug fixes. https://epplussoftware.com/Developers/MinorFeaturesAndIssues

## Version 6.2.1
* Bug fixes.

## Version 6.2.0
* Improved performance and better support for cross-worksheet references in data validations.
* Bug fixes.
* Bug fixes.

## Version 6.1.3
* Bug fixes.
Expand Down Expand Up @@ -295,8 +298,9 @@
A list of fixed issues can be found here https://epplussoftware.com/docs/5.8/articles/fixedissues.html

Version history
6.2.1 20230406 Minor bug fixes. See https://epplussoftware.com/Developers/MinorFeaturesAndIssues
6.2.0 20230324 Performance update to data validation. Minor bug fixes.
6.2.2 20230417 Minor bug fixes. See https://epplussoftware.com/Developers/MinorFeaturesAndIssues
6.2.1 20230406 Minor bug fixes.
6.2.0 20230324 Performance update to data validation. Minor bug fixes.
6.1.3 20230224 Minor bug fixes.
6.1.2 20230119 Minor bug fixes.
6.1.1 20221121 Minor bug fixes.
Expand Down

0 comments on commit 45d5f04

Please sign in to comment.