From b7efafe3b8c92d6636d6d489eb4fbdabf9371cc9 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 12 Oct 2011 23:07:38 +0000 Subject: [PATCH] Fix calculation of the time column widths Originally committed to SVN as r5734. --- aegisub/src/base_grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index 9c2766e78..5dfaaa853 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -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]; }