Source/QuartzUtils.m
changeset 6 af9b2b929b03
parent 1 3eb7be1dd7b6
child 7 428a194e3e59
     1.1 --- a/Source/QuartzUtils.m	Mon Mar 10 17:30:57 2008 -0700
     1.2 +++ b/Source/QuartzUtils.m	Wed Mar 12 15:51:32 2008 -0700
     1.3 @@ -71,8 +71,9 @@
     1.4      [CATransaction setValue:(id)kCFBooleanTrue
     1.5                       forKey:kCATransactionDisableActions];
     1.6  
     1.7 -    CGPoint pos = [newSuperlayer convertPoint: layer.position 
     1.8 -                      fromLayer: layer.superlayer];
     1.9 +    CGPoint pos = layer.position;
    1.10 +    if( layer.superlayer )
    1.11 +        pos = [newSuperlayer convertPoint: pos fromLayer: layer.superlayer];
    1.12      [layer retain];
    1.13      [layer removeFromSuperlayer];
    1.14      if( index >= 0 )