Fix calculation of the time column widths

Originally committed to SVN as r5734.
This commit is contained in:
Thomas Goyne 2011-10-12 23:07:38 +00:00
parent 98786aecba
commit b7efafe3b8
1 changed files with 2 additions and 2 deletions

View File

@ -868,8 +868,8 @@ void BaseGrid::SetColumnWidths() {
int total = std::accumulate(colWidth, colWidth + 10, 0);
colWidth[10] = w - total;
time_cols_x = labelLen + layerLen;
time_cols_w = startLen + endLen;
time_cols_x = colWidth[0] + colWidth[1];
time_cols_w = colWidth[2] + colWidth[3];
text_col_x = total;
text_col_w = colWidth[10];
}