Fix a legitimate overrun in _widths (coverity 575), and try not to be as

clever.

svn path=/trunk/; revision=36421
This commit is contained in:
Art Yerkes 2008-09-23 09:09:16 +00:00
parent 91ae271e19
commit a6b7e20ad4

View file

@ -774,8 +774,8 @@ void Pane::calc_single_width(int col)
x = _positions[col] + cx;
for(; col<COLUMNS; ) {
_positions[++col] = x;
for(; col<COLUMNS; col++) {
_positions[col+1] = x;
x += _widths[col];
}