Skip to content

Commit

Permalink
Merge pull request #3721 from ggirotto/axis-base-bugfix
Browse files Browse the repository at this point in the history
Fix wrong assignment to axisMaxLabels property
fix #3656
  • Loading branch information
liuxuan30 committed Nov 1, 2018
2 parents 3b07904 + d59b2d8 commit 69e433a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Components/AxisBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ open class AxisBase: ComponentBase

/// The maximum number of labels on the axis
@objc open var axisMaxLabels = Int(25) {
didSet { axisMinLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue }
didSet { axisMaxLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue }
}

/// the number of label entries the axis should have
Expand Down

0 comments on commit 69e433a

Please sign in to comment.