Skip to content

Commit

Permalink
Fixed parsing of short #abc colors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Mar 4, 2016
1 parent b30a840 commit f324ae8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Charts/Classes/Utils/ChartColorTemplates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,8 @@ public class ChartColorTemplates: NSObject
var index = colorString.startIndex
let endIndex = colorString.endIndex

if length % 2 == 1
{
index = index.advancedBy(1)
length = length - 1
}
index = index.advancedBy(1)
length = length - 1

if length == 3 || length == 6 || length == 8
{
Expand Down

0 comments on commit f324ae8

Please sign in to comment.