Skip to content

Commit

Permalink
also less count++
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Nov 28, 2024
1 parent 0291089 commit 0777faa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CommonData/column.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2381,13 +2381,15 @@ stringvec Column::previewTransform(columnType transformType)
for(Label * label : _labels)
if(!label->isEmptyValue() && !ColumnUtils::isDoubleValue(label->originalValueAsString()))
{
if(count++ < showThisMany)
someImplicitEmptyValues << (count++ > 0 ? ", " : "") << '"' << label->originalValueAsString() << '"';
if(count < showThisMany)
someImplicitEmptyValues << (count > 0 ? ", " : "") << '"' << label->originalValueAsString() << '"';
else
{
someImplicitEmptyValues << ", ...";
break; // Do not need to loop further over the labels.
}

count++;
}
}

Expand Down

0 comments on commit 0777faa

Please sign in to comment.