mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:20:47 +00:00
Don't attempt to add a nil sort descriptor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30005 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0de3edcfe1
commit
4b4cc7452c
1 changed files with 3 additions and 2 deletions
|
@ -5007,7 +5007,7 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
int endingColumn;
|
||||
|
||||
NSGraphicsContext *ctxt = GSCurrentContext ();
|
||||
float position;
|
||||
float position = 0.0;
|
||||
|
||||
int startingRow = [self rowAtPoint:
|
||||
NSMakePoint (_bounds.origin.x, minY)];
|
||||
|
@ -5968,7 +5968,8 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
}
|
||||
|
||||
[newSortDescriptors removeObjectsInArray: outdatedDescriptors];
|
||||
[newSortDescriptors insertObject: newMainSortDescriptor atIndex: 0];
|
||||
if (newMainSortDescriptor != nil)
|
||||
[newSortDescriptors insertObject: newMainSortDescriptor atIndex: 0];
|
||||
|
||||
[self setSortDescriptors: newSortDescriptors];
|
||||
|
||||
|
|
Loading…
Reference in a new issue