fix a couple ssues with 64bit NSInteger

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40099 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Paul Landers 2016-09-21 20:54:58 +00:00
parent afdb6075a1
commit 3b3388e8ad
2 changed files with 10 additions and 5 deletions

View file

@ -2308,12 +2308,17 @@ Also returns the child index relative to this parent. */
objectValueForTableColumn:column
byItem:item];
draggedItemString = [draggedObject description];
// Pad the string to match its indentation level:
int level = [self levelForRow:row];
NSString *pad = [@"" stringByPaddingToLength:(level*4)
withString:@" "
startingAtIndex:0];
draggedItemString = [pad stringByAppendingString:[draggedObject description]];
if (level > 0)
{
NSString *pad = [@"" stringByPaddingToLength:(level*4)
withString:@" "
startingAtIndex:0];
draggedItemString = [pad stringByAppendingString:draggedItemString];
}
}
return draggedItemString;
}