Skip to content

Commit

Permalink
Ignore empty values for the purposes of TabularData::columnHasDuplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 10, 2024
1 parent 970e8ef commit a7ee14f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/shared/loading/tabulardata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ bool TabularData::columnHasDuplicates(size_t columnIndex, size_t rowIndex) const

for(; rowIndex < numRows(); rowIndex++)
{
auto [it, inserted] = values.insert(valueAt(columnIndex, rowIndex));
auto value = valueAt(columnIndex, rowIndex);

if(value.isEmpty())
continue;

auto [it, inserted] = values.insert(value);

if(!inserted)
return true;
Expand Down

0 comments on commit a7ee14f

Please sign in to comment.