diff --git a/CommonData/column.cpp b/CommonData/column.cpp index 2161284d5a..a2b3462d5f 100644 --- a/CommonData/column.cpp +++ b/CommonData/column.cpp @@ -2372,20 +2372,28 @@ stringvec Column::previewTransform(columnType transformType) } { - std::stringstream someEmptyValues; + std::stringstream someImplicitEmptyValues; if(transformType == columnType::scale && labelsTempCount() > _labelsTempNumerics) { int count = 0; for(Label * label : _labels) - if(!label->isEmptyValue() && count < showThisMany) - someEmptyValues << (count++ > 0 ? ", " : "") << '"' << label->originalValueAsString() << '"'; - else if(!label->isEmptyValue() && count++ == showThisMany) - someEmptyValues << ", ..."; + if(!label->isEmptyValue() && !ColumnUtils::isDoubleValue(label->originalValueAsString())) + { + if(count < showThisMany) + someImplicitEmptyValues << (count > 0 ? ", " : "") << '"' << label->originalValueAsString() << '"'; + else + { + someImplicitEmptyValues << ", ..."; + break; // Do not need to loop further over the labels. + } + + count++; + } } - out.push_back(someEmptyValues.str()); + out.push_back(someImplicitEmptyValues.str()); } return out; diff --git a/CommonData/label.cpp b/CommonData/label.cpp index 15103c9a43..cf3949fddc 100644 --- a/CommonData/label.cpp +++ b/CommonData/label.cpp @@ -248,7 +248,7 @@ std::string Label::labelIgnoreEmpty() const bool Label::isEmptyValue() const { - return _column->isEmptyValue(_label); + return _column->isEmptyValue(originalValueAsString(false)) || _column->isEmptyValue(label()); } std::string Label::originalValueAsString(bool fancyEmptyValue) const