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