Skip to content

Commit

Permalink
Fixed issue #14
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Apr 8, 2015
1 parent d37110a commit e2ec487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate

ChartUtils.drawText(context: context, text: noDataText, point: CGPoint(x: frame.width / 2.0, y: frame.height / 2.0), align: .Center, attributes: [NSFontAttributeName: _infoFont, NSForegroundColorAttributeName: _infoTextColor]);

if (noDataTextDescription!.lengthOfBytesUsingEncoding(NSUTF16StringEncoding) > 0)
if (noDataTextDescription?.lengthOfBytesUsingEncoding(NSUTF16StringEncoding) > 0)
{
var textOffset = -_infoFont.lineHeight / 2.0;

Expand Down

0 comments on commit e2ec487

Please sign in to comment.