Author: paullanders
Date: Wed Sep 21 22:54:58 2016
New Revision: 40099

URL: http://svn.gna.org/viewcvs/gnustep?rev=40099&view=rev
Log:
fix a couple ssues with 64bit NSInteger

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSOutlineView.m
    libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSOutlineView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSOutlineView.m?rev=40099&r1=40098&r2=40099&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSOutlineView.m   
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSOutlineView.m   Wed Sep 
21 22:54:58 2016
@@ -2308,12 +2308,17 @@
                               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;
 }

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m?rev=40099&r1=40098&r2=40099&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m     
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m     Wed Sep 
21 22:54:58 2016
@@ -5552,7 +5552,7 @@
   // Build a string of texts, each representing a line from the tableView,
   // separated by "\n":
   NSString *descriptionsList = nil;
-  unsigned int index = [rows firstIndex];
+  NSInteger index = [rows firstIndex];
   while (index != NSNotFound)
   {
     NSString *draggedItemString = [self _objectStringForTableColumn:[cols 
objectAtIndex:0]


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to