Skip to content

Commit

Permalink
#5 Fix Separate Values button fails on column with all zero strings i…
Browse files Browse the repository at this point in the history
…n C# version
  • Loading branch information
tduguid authored and tduguid committed Jan 14, 2018
1 parent 3d16efa commit 0fae551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CS/Scripts/Ribbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -923,9 +923,9 @@ public void SeparateValues()

for (int i = 1; i <= m + 1; i++) // by row
{
string cellValue = tbl.Range.Cells[i, columnIndex].Value2.ToString();
if (string.IsNullOrEmpty(cellValue) == false)
if (tbl.Range.Cells[i, columnIndex].Value2 != null)
{
string cellValue = tbl.Range.Cells[i, columnIndex].Value2.ToString();
string[] metadata = cellValue.Split(Properties.Settings.Default.Table_ColumnSeparateValuesDelimiter);
int countValues = metadata.Length - 1;
if (countValues > 0)
Expand Down

0 comments on commit 0fae551

Please sign in to comment.