Permalink
Browse files

Use CGFloat instead of int for calculating stack height of bar views.

  • Loading branch information...
1 parent 882beee commit 4dc86560a6b311c9fd490d51e52d54ee33fe8d21 Ole Zorn committed May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/GraphView.m
View
@@ -498,7 +498,7 @@ - (void)setSegmentValues:(NSArray *)values label:(NSString *)labelText
- (CGFloat)stackHeight
{
- int stackHeight = 0;
+ CGFloat stackHeight = 0.0;
for (UIView *segmentView in segmentViews) {
stackHeight += segmentView.frame.size.height;
}

0 comments on commit 4dc8656

Please sign in to comment.