gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Recursive loop in CPTLayer setHidden: in CorePlot_0.4.zip #314

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I upgraded the core-plot library from 0.3 to 0.4 to avoid the class name clash 
with CorePDF in snow leopard.  I updated all references from CPxxx to CPTxxx.  
However, when my app tried to show a chart.  I got this error:

sharedlibrary apply-load-rules all
Warning: the current language does not match this frame.
warning: Unable to restore previously selected frame.
Current language:  auto; currently objective-c
warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
...

I looked at the GPTLayer.m and suspect that the setHidden: may have an infinite 
loop from the dot property assignment.  Is it the case?

-(void)setHidden:(BOOL)newHidden
{
    if ( newHidden != self.hidden ) {
        self.hidden = newHidden;
        if ( !newHidden ) {
            [self setNeedsDisplay];
        }
    }
}

Original issue reported on code.google.com by weera...@gmail.com on 10 Aug 2011 at 10:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 6990699ca1fb.

Original comment by eskr...@mac.com on 11 Aug 2011 at 2:20

GoogleCodeExporter commented 9 years ago
It is fixed, thank you.

Original comment by weera...@gmail.com on 11 Aug 2011 at 10:53