Correction for bug#15642.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@22446 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-02-07 02:06:59 +00:00
parent fc7fe09848
commit edac6ea119
4 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-02-06 21:06 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/3Containers/GormNSTableViewInspector.gorm
* Palettes/3Containers/GormTableViewAttributesInspector.m:
Correction for bug#15642.
2006-02-03 21:56 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormScrollViewAttributesInspector.m

View file

@ -107,9 +107,17 @@
{
int numCols = [object numberOfColumns];
int newNumCols = [[sender cellAtIndex: 1] intValue];
float rowHeight = [[sender cellAtIndex: 0] floatValue];
// make sure the minimum height doesn't go below 1.
if(rowHeight < 1.0)
{
rowHeight = 1.0;
[[sender cellAtIndex: 0] setFloatValue: 1.0];
}
// add/delete columns based on number in #columns field...
[object setRowHeight: [[sender cellAtIndex: 0] intValue] ];
[object setRowHeight: rowHeight];
if(newNumCols > 0)
{
if(numCols < newNumCols)
@ -241,5 +249,4 @@
{
[self ok:[aNotification object]];
}
@end