Skip to content

Commit

Permalink
fixes #332, fixes #330
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Jan 15, 2022
1 parent f342216 commit 343996f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LiveChartsCore/Measure/Scaler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public Scaler(

if (maxLimit is not null || minLimit is not null)
{
_maxVal = axis.IsInverted ? maxLimit ?? _maxVal : minLimit ?? _minVal;
_minVal = axis.IsInverted ? minLimit ?? _minVal : maxLimit ?? _maxVal;
_maxVal = axis.IsInverted ? maxLimit ?? _minVal : minLimit ?? _maxVal;
_minVal = axis.IsInverted ? minLimit ?? _maxVal : maxLimit ?? _minVal;
}
else
{
Expand Down

0 comments on commit 343996f

Please sign in to comment.