# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301621825 0 # Node ID 93ac372941c456390388fbb8be70cc43efd450a5 # Parent 80a88c91ccf6643dc6c31faf4ee4c7713d3e97fc Formatting cleanups. diff -r 80a88c91ccf6 -r 93ac372941c4 mac/dw.m --- 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