RifEclipseDataTableFormatter. Renamed method to clearify its purpose

This commit is contained in:
Bjørn Erik Jensen
2018-08-29 08:41:23 +02:00
parent 6b5f7ed1d9
commit c4577084dc
3 changed files with 13 additions and 13 deletions
@@ -266,16 +266,16 @@ RifEclipseDataTableFormatter& RifEclipseDataTableFormatter::add(size_t num)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifEclipseDataTableFormatter& RifEclipseDataTableFormatter::addZeroBasedCellIndex(size_t index)
RifEclipseDataTableFormatter& RifEclipseDataTableFormatter::addOneBasedCellIndex(size_t zeroBasedIndex)
{
size_t column = m_lineBuffer.size();
CVF_ASSERT(column < m_columns.size());
// Increase index by 1 to use Eclipse 1-based cell index instead of ResInsight 0-based
index++;
zeroBasedIndex++;
m_columns[column].width = std::max(measure(index), m_columns[column].width);
m_lineBuffer.push_back(format(index));
m_columns[column].width = std::max(measure(zeroBasedIndex), m_columns[column].width);
m_lineBuffer.push_back(format(zeroBasedIndex));
return *this;
}