mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:40:39 +00:00
Changed superviewFrameChanged to prevent crash when the number of columns
in an NSTableView is reduced to zero. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11603 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1aa9ae91db
commit
43ae836014
1 changed files with 8 additions and 4 deletions
|
@ -3533,10 +3533,14 @@ byExtendingSelection: (BOOL)flag
|
|||
{
|
||||
float visible_width = [self convertRect: [_super_view bounds]
|
||||
fromView: _super_view].size.width;
|
||||
|
||||
float table_width =
|
||||
_columnOrigins[_numberOfColumns - 1] +
|
||||
[[_tableColumns objectAtIndex: _numberOfColumns - 1] width];
|
||||
float table_width = 0;
|
||||
|
||||
if(_numberOfColumns > 0)
|
||||
{
|
||||
table_width =
|
||||
_columnOrigins[_numberOfColumns - 1] +
|
||||
[[_tableColumns objectAtIndex: _numberOfColumns - 1] width];
|
||||
}
|
||||
|
||||
/*
|
||||
NSLog(@"columnOrigins[0] %f", _columnOrigins[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue