Author: mlytwyn
Date: Thu Sep 10 15:39:39 2015
New Revision: 38977

URL: http://svn.gna.org/viewcvs/gnustep?rev=38977&view=rev
Log:
Check for drawing rect within bounds before drawing toolbar item

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSToolbarItem.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSToolbarItem.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSToolbarItem.m?rev=38977&r1=38976&r2=38977&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSToolbarItem.m   
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSToolbarItem.m   Thu Sep 
10 15:39:39 2015
@@ -536,7 +536,7 @@
 
 - (void) drawRect: (NSRect)rect
 {  
-  if (_showLabel)
+  if (_showLabel && NSIntersectsRect(rect, [self bounds]))
     {
       NSAttributedString *attrString;
       NSDictionary *attr;


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to