Revision: 7559
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7559&view=rev
Author:   hofman
Date:     2011-12-04 23:27:53 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
revert order of drawing as it does not make a difference

Modified Paths:
--------------
    trunk/SKTextWithIconCell.m

Modified: trunk/SKTextWithIconCell.m
===================================================================
--- trunk/SKTextWithIconCell.m  2011-12-04 23:15:15 UTC (rev 7558)
+++ trunk/SKTextWithIconCell.m  2011-12-04 23:27:53 UTC (rev 7559)
@@ -112,17 +112,17 @@
 }
 
 - (void)drawInteriorWithFrame:(NSRect)aRect inView:(NSView *)controlView {
+    // let super draw the text, but vertically center the text for tall cells, 
because NSTextFieldCell aligns at the top
+    NSRect textRect = [self textRectForBounds:aRect];
+    if (NSHeight(textRect) > [self cellSize].height + 2.0)
+        textRect = SKCenterRectVertically(textRect, [self cellSize].height + 
2.0, [controlView isFlipped]);
+    [super drawInteriorWithFrame:textRect inView:controlView];
+    
     // Draw the image
     NSRect imageRect = [self iconRectForBounds:aRect];
     imageRect = SKCenterRectVertically(imageRect, NSWidth(imageRect), 
[controlView isFlipped]);
     imageRect.origin.y += [controlView isFlipped] ? -IMAGE_OFFSET : 
IMAGE_OFFSET;
     [imageCell drawInteriorWithFrame:imageRect inView:controlView];
-    
-    // let super draw the text, but vertically center the text for tall cells, 
because NSTextFieldCell aligns at the top
-    NSRect textRect = [self textRectForBounds:aRect];
-    if (NSHeight(textRect) > [self cellSize].height + 2.0)
-        textRect = SKCenterRectVertically(textRect, [self cellSize].height + 
2.0, [controlView isFlipped]);
-    [super drawInteriorWithFrame:textRect inView:controlView];
 }
 
 - (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView 
editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to