Fix ClipPath position with Text elements

This commit is contained in:
Horcrux
2016-11-11 14:10:19 +08:00
parent 0434cddc8b
commit 44860a02ff
3 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -25,8 +25,8 @@
- (void)renderLayerTo:(CGContextRef)context
{
CGContextSaveGState(context);
CGContextConcatCTM(context, CGAffineTransformMakeTranslation([self getShift:context path:nil], 0));
[super renderLayerTo:context];
CGAffineTransform transform = CGAffineTransformMakeTranslation([self getShift:context path:nil], 0);
[super renderLayerToWithTransform:context transform:transform];
CGContextRestoreGState(context);
}