Skip to content

Commit 0ec0a20

Browse files
authored
Merge pull request oxyplot#1307 from VisualMelon/AxisResetEventDeltaMaximum
Fix AxisChangedEventArgs.DeltaMaximum in Axes.Reset
2 parents 2259c78 + 1b14b82 commit 0ec0a20

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ All notable changes to this project will be documented in this file.
5858
- CandleStick is overlapped when item.open == item.close in the CandleStickAndVolumeSeries (#1245)
5959
- Out of memory exception and performance issue with Catmull-Rom Spline (#1237)
6060
- Cache and Dispose Brush and Pen objects used by GraphicsRenderContext (#1230)
61+
- Fix AxisChangedEventArgs.DeltaMaximum in Axes.Reset (#1306)
6162

6263
## [1.0.0] - 2016-09-11
6364
### Added

Source/OxyPlot/Axes/Axis.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ public virtual void Render(IRenderContext rc, int pass)
964964
public virtual void Reset()
965965
{
966966
var oldMinimum = this.ActualMinimum;
967-
var oldMaximum = this.ActualMinimum;
967+
var oldMaximum = this.ActualMaximum;
968968

969969
this.ViewMinimum = double.NaN;
970970
this.ViewMaximum = double.NaN;
@@ -1734,4 +1734,4 @@ protected virtual void OnTransformChanged(EventArgs args)
17341734
}
17351735
}
17361736
}
1737-
}
1737+
}

0 commit comments

Comments
 (0)