Permalink
Browse files

Minor bug fixes

  • Loading branch information...
1 parent 92e00e4 commit 1a107142b4f7246b02e3da59983dd8fa3d0f866a @sergeylenkov committed Mar 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/YBGraphView.m
View
2 Classes/YBGraphView.m
@@ -421,7 +421,7 @@ - (void)drawRect:(NSRect)rect {
if ([values count] == 1) {
int x = (self.frame.size.width) / 2;
- int y = [[values objectAtIndex:0] intValue] * stepY;
+ int y = [[values objectAtIndex:0] floatValue] * stepY;
if (!useMinValue) {
y = ([[values objectAtIndex:0] floatValue] - minY) * stepY;

0 comments on commit 1a10714

Please sign in to comment.