Skip to content

Commit

Permalink
Made the titleTextStyle property immutable in CPTGraph.
Browse files Browse the repository at this point in the history
  • Loading branch information
eskroch committed Jul 10, 2011
1 parent 2ac1efb commit e4d6dac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions framework/Source/CPTGraph.h
Expand Up @@ -10,7 +10,7 @@
@class CPTPlotAreaFrame;
@class CPTPlotSpace;
@class CPTTheme;
@class CPTMutableTextStyle;
@class CPTTextStyle;
@class CPTLayerAnnotation;

/**
Expand Down Expand Up @@ -38,7 +38,7 @@ typedef enum _CPTGraphLayerType {
NSMutableArray *plots;
NSMutableArray *plotSpaces;
NSString *title;
CPTMutableTextStyle *titleTextStyle;
CPTTextStyle *titleTextStyle;
CPTRectAnchor titlePlotAreaFrameAnchor;
CGPoint titleDisplacement;
CPTLayerAnnotation *titleAnnotation;
Expand All @@ -52,7 +52,7 @@ typedef enum _CPTGraphLayerType {
/// @name Title
/// @{
@property (nonatomic, readwrite, copy) NSString *title;
@property (nonatomic, readwrite, copy) CPTMutableTextStyle *titleTextStyle;
@property (nonatomic, readwrite, copy) CPTTextStyle *titleTextStyle;
@property (nonatomic, readwrite, assign) CGPoint titleDisplacement;
@property (nonatomic, readwrite, assign) CPTRectAnchor titlePlotAreaFrameAnchor;
/// @}
Expand Down
2 changes: 1 addition & 1 deletion framework/Source/CPTGraph.m
Expand Up @@ -145,7 +145,7 @@ -(id)initWithFrame:(CGRect)newFrame
// Title
title = nil;
titlePlotAreaFrameAnchor = CPTRectAnchorTop;
titleTextStyle = [[CPTMutableTextStyle textStyle] retain];
titleTextStyle = [[CPTTextStyle textStyle] retain];
titleDisplacement = CGPointZero;
titleAnnotation = nil;

Expand Down

0 comments on commit e4d6dac

Please sign in to comment.