table column widths where not always correctly calculated - fixes bug reported under issue #628

In the edge case reported under issue #628 the column widths where not calculated correctly.
This pull requests solves the issue.