Removed Redundant Comments
This commit is contained in:
@@ -261,9 +261,7 @@
|
||||
|
||||
- (void)draw
|
||||
{
|
||||
// Get the current context
|
||||
CGContextRef context =
|
||||
(CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
|
||||
CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
|
||||
CGContextSaveGState(context);
|
||||
|
||||
[[NSColor textColor] set];
|
||||
@@ -277,12 +275,10 @@
|
||||
|
||||
CGContextSetTextMatrix(context, CGAffineTransformIdentity);
|
||||
|
||||
// Track the x position and the bounds of the last element
|
||||
CGFloat x = 0;
|
||||
NSRect lastElementBounds = NSMakeRect(0, kMPEmptyBoxYOrigin, kMPEmptyBoxWidth, kMPEmptyBoxHeight);
|
||||
|
||||
for (NSUInteger index = 0; index < self.expression.countElements; index++) {
|
||||
// The current element
|
||||
id element = [self.expression elementAtIndex:index];
|
||||
NSRect elementBounds = [self boundsOfElementAtIndex:index];
|
||||
|
||||
@@ -295,7 +291,6 @@
|
||||
|
||||
CFRelease(line);
|
||||
} else {
|
||||
// Let the child layout draw itself
|
||||
MPLayout *layout = [self childLayoutAtIndex:index];
|
||||
if ([layout isKindOfClass:[MPPowerFunctionLayout class]]) {
|
||||
((MPPowerFunctionLayout *)layout).baseBounds = lastElementBounds;
|
||||
|
||||
Reference in New Issue
Block a user