Skip to content

Commit

Permalink
Ignore empty values for the purposes of TabularData::rowHasDuplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 11, 2024
1 parent ed3a461 commit b8fdd61
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 @@ -295,7 +295,12 @@ bool TabularData::rowHasDuplicates(size_t rowIndex, size_t columnIndex) const

for(; columnIndex < numColumns(); columnIndex++)
{
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 b8fdd61

Please sign in to comment.