Fix calculating columns width for unseparated columns

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2005-08-16 23:21:26 +00:00
parent 79dfd20f80
commit 7ae7d410bf

View file

@ -1660,7 +1660,7 @@ static NSTextFieldCell *titleCell;
if (_separatesColumns)
frameWidth = _frame.size.width - ((columnCount - 1) * NSBR_COLUMN_SEP);
else
frameWidth = _frame.size.width - (columnCount + (2 * bs.width));
frameWidth = _frame.size.width - ((columnCount - 1) + (2 * bs.width));
_columnSize.width = (int)(frameWidth / (float)columnCount);