Author: mlytwyn
Date: Sat Nov 12 00:47:35 2016
New Revision: 40218

URL: http://svn.gna.org/viewcvs/gnustep?rev=40218&view=rev
Log:
Use different attributed string drawing method

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSCell.m
    libs/gui/branches/gnustep_testplant_branch/Source/NSTextFieldCell.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSCell.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSCell.m?rev=40218&r1=40217&r2=40218&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSCell.m  (original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSCell.m  Sat Nov 12 
00:47:35 2016
@@ -3142,7 +3142,7 @@
   aRect.size.height = titleSize.height;
   aString = [self _resizeAttributedString:aString forRect:aRect];
   
-  [aString drawInRect: aRect];
+  [aString drawWithRect: aRect options: NSStringDrawingUsesLineFragmentOrigin];
 }
 
 - (void) _drawText: (NSString*)aString  inFrame: (NSRect)cellFrame

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTextFieldCell.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTextFieldCell.m?rev=40218&r1=40217&r2=40218&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTextFieldCell.m 
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTextFieldCell.m Sat Nov 
12 00:47:35 2016
@@ -262,7 +262,7 @@
                          } while ([string length] > 4 && [string size].width > 
titleRect.size.width);
     }
 }
-      [string drawInRect: titleRect];
+      [string drawWithRect: titleRect options: 
NSStringDrawingUsesLineFragmentOrigin];
     }
 }
 


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

Reply via email to