Better fix for bug 12810 - Script/Images name disappearing when clicked on it

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40384 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2017-03-12 00:19:00 +00:00
parent 52d27d8f82
commit b3ac8d4ac6

View file

@ -930,8 +930,6 @@ static NSImage *unexpandable = nil;
*/
- (void) drawRow: (NSInteger)rowIndex clipRect: (NSRect)aRect
{
int startingColumn;
int endingColumn;
NSRect drawingRect;
NSCell *imageCell = nil;
NSRect imageRect;
@ -943,9 +941,6 @@ static NSImage *unexpandable = nil;
return;
}
/* Using columnAtPoint: here would make it called twice per row per drawn
rect - so we avoid it and do it natively */
if (rowIndex >= _numberOfRows)
{
return;
@ -953,12 +948,15 @@ static NSImage *unexpandable = nil;
/* Determine starting column as fast as possible */
NSArray *columns = [self _visibleColumns];
startingColumn = [_tableColumns indexOfObject: [columns firstObject]];
endingColumn = [_tableColumns indexOfObject: [columns lastObject]];
NSTableColumn *column = nil;
NSEnumerator *iter = [columns objectEnumerator];
/* Draw the row between startingColumn and endingColumn */
for (i = startingColumn; i <= endingColumn; i++)
while ((column = [iter nextObject]))
{
// Drawing visible columns only now based on hidden setting...
i = [_tableColumns indexOfObject: column];
// Testplant-MAL-2015-07-01: Testplant branch code used due to NSTableView
// for group row processing...which were needed due to Cocoa code flow diffs
// for preparedCell... and data cell generation code