From daff64536c5461db00e230eb7c5ea17ff5e19572 Mon Sep 17 00:00:00 2001 From: potato04 Date: Fri, 28 Sep 2018 23:19:17 +0800 Subject: [PATCH] update code style --- Source/Charts/Components/YAxis.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Charts/Components/YAxis.swift b/Source/Charts/Components/YAxis.swift index 6a1b314072..05232e6579 100644 --- a/Source/Charts/Components/YAxis.swift +++ b/Source/Charts/Components/YAxis.swift @@ -156,10 +156,12 @@ open class YAxis: AxisBase if _customAxisMax && _customAxisMin { (min, max) = (max, min) - } else if _customAxisMax && !_customAxisMin + } + else if _customAxisMax && !_customAxisMin { min = max - 1 - } else if !_customAxisMax && _customAxisMin + } + else if !_customAxisMax && _customAxisMin { max = min + 1 }