Archived
1

Fixed minor Documentation Issues

This commit is contained in:
Kim Wittenburg
2015-01-04 22:16:27 +01:00
parent 7438fd1f95
commit cff8ed68e2
86 changed files with 179 additions and 183 deletions

View File

@@ -1,6 +1,6 @@
//
// MPExpressionLayout.m
// MathPad
// MathKit
//
// Created by Kim Wittenburg on 07.08.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
@@ -275,7 +275,6 @@
return;
}
// Set the text matrix
CGContextSetTextMatrix(context, CGAffineTransformIdentity);
// Track the x position and the bounds of the last element
@@ -288,14 +287,10 @@
NSRect elementBounds = [self boundsOfElementAtIndex:index];
if ([element isString]) {
// Get the line to draw
CTLineRef line = [self lineForElementAtIndex:index];
CFRetain(line);
// Move to the appropriate position
CGContextSetTextPosition(context, x, 0);
// Perform the drawing
CTLineDraw(line, context);
CFRelease(line);