changeset 860:93ac372941c4

Formatting cleanups.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 01 Apr 2011 01:37:05 +0000
parents 80a88c91ccf6
children 8f2722696a8e
files mac/dw.m
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Fri Apr 01 01:22:00 2011 +0000
+++ b/mac/dw.m	Fri Apr 01 01:37:05 2011 +0000
@@ -718,7 +718,7 @@
 /* Subclass for a textfield that supports vertical centering */
 @interface DWTextFieldCell : NSTextFieldCell
 {
-	BOOL vcenter;
+    BOOL vcenter;
 }
 -(NSRect)drawingRectForBounds:(NSRect)theRect;
 -(void)setVCenter:(BOOL)input;
@@ -727,8 +727,8 @@
 @implementation DWTextFieldCell
 -(NSRect)drawingRectForBounds:(NSRect)theRect
 {
-	/* Get the parent's idea of where we should draw */
-	NSRect newRect = [super drawingRectForBounds:theRect];
+    /* Get the parent's idea of where we should draw */
+    NSRect newRect = [super drawingRectForBounds:theRect];
     
     /* If we are being vertically centered */
     if(vcenter)
@@ -736,16 +736,16 @@
         /* Get our ideal size for current text */
         NSSize textSize = [self cellSizeForBounds:theRect];
         
-		/* Center that in the proposed rect */
-		float heightDelta = newRect.size.height - textSize.height;	
-		if (heightDelta > 0)
-		{
-			newRect.size.height -= heightDelta;
-			newRect.origin.y += (heightDelta / 2);
-		}
-	}
+        /* Center that in the proposed rect */
+        float heightDelta = newRect.size.height - textSize.height;	
+        if (heightDelta > 0)
+        {
+            newRect.size.height -= heightDelta;
+            newRect.origin.y += (heightDelta / 2);
+        }
+    }
 	
-	return newRect;
+    return newRect;
 }
 -(void)setVCenter:(BOOL)input { vcenter = input; }
 @end