Skip to content

Commit

Permalink
Fixed an iOS text drawing issue. Fixed issue 516.
Browse files Browse the repository at this point in the history
  • Loading branch information
eskroch committed Mar 17, 2013
1 parent aacc7f8 commit bad8ba4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions framework/Source/CPTTextLayer.m
Expand Up @@ -242,12 +242,7 @@ -(void)renderAsVectorInContext:(CGContextRef)context

#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
CGContextSaveGState(context);
CGFloat contextHeight = CPTFloat( CGBitmapContextGetHeight(context) ) / self.contentsScale;
if ( contextHeight == CPTFloat(0.0) ) {
// FIXME: won't work if this layer has a shadow
contextHeight = self.bounds.size.height;
}
CGContextTranslateCTM(context, CPTFloat(0.0), contextHeight);
CGContextTranslateCTM(context, CPTFloat(0.0), self.bounds.size.height);
CGContextScaleCTM( context, CPTFloat(1.0), CPTFloat(-1.0) );
#endif

Expand Down

0 comments on commit bad8ba4

Please sign in to comment.