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:
Jonathan Gillaspie 2010-03-19 23:39:07 +00:00
parent 0de3edcfe1
commit 4b4cc7452c

View file

@ -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];