Skip to content

Commit

Permalink
Fix to new continuous integer cells containing junk
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathon-love committed Jun 14, 2018
1 parent 652aec6 commit b90a1cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/jamovi/core/datasetw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void DataSetW::setRowCount(size_t count)
ColumnStruct *c = columns[i];
ColumnW column(this, _mm, c);

if (column.measureType() == MeasureType::CONTINUOUS)
if (column.dataType() == DataType::DECIMAL)
column.setRowCount<double>(count);
else
column.setRowCount<int>(count);
Expand All @@ -220,7 +220,7 @@ void DataSetW::appendRows(int n)
ColumnStruct *c = columns[i];
ColumnW column(this, _mm, c);

if (column.measureType() == MeasureType::CONTINUOUS)
if (column.dataType() == DataType::DECIMAL)
{
for (int j = 0; j < n; j++)
column.append<double>(NAN);
Expand Down Expand Up @@ -263,7 +263,7 @@ void DataSetW::deleteRows(int delStart, int delEnd)
ColumnStruct *c = columns[i];
ColumnW column(this, _mm, c);

if (column.measureType() == MeasureType::CONTINUOUS)
if (column.dataType() == DataType::DECIMAL)
{
for (int j = delStart; j < finalCount; j++)
{
Expand Down

0 comments on commit b90a1cc

Please sign in to comment.