From 34de44488dcb73414ae6fd0b2c5b29cd335b823b Mon Sep 17 00:00:00 2001 From: Jeff Willette Date: Tue, 23 May 2017 12:11:29 +0900 Subject: [PATCH] changed the tick sanity ount variable (#42) - The DefaultTickSanityCount was set in the default.go file and then in in tick.go the setting was ignored and the value was again set with 1 << 10 Changed to use the setting instead --- tick.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tick.go b/tick.go index 875fc5f..72ff9c5 100644 --- a/tick.go +++ b/tick.go @@ -86,7 +86,7 @@ func GenerateContinuousTicks(r Renderer, ra Range, isVertical bool, style Style, tickStep := rangeDelta / float64(intermediateTickCount) roundTo := util.Math.GetRoundToForDelta(rangeDelta) / 10 - intermediateTickCount = util.Math.MinInt(intermediateTickCount, 1<<10) + intermediateTickCount = util.Math.MinInt(intermediateTickCount, DefaultTickCountSanityCheck) for x := 1; x < intermediateTickCount; x++ { var tickValue float64