From a65ff4d17d740ebecfb4c988c63ac88da6997eaf Mon Sep 17 00:00:00 2001 From: Mike Piatek-Jimenez Date: Mon, 18 May 2020 17:36:54 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20a=20bug=20where=20the=20max=20scale=20wou?= =?UTF-8?q?ldn=E2=80=99t=20be=20reset=20in=20the=20disk=20graph=20properly?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Graph Views/XRGDiskView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Graph Views/XRGDiskView.m b/Graph Views/XRGDiskView.m index e8d63b1..ea593fb 100644 --- a/Graph Views/XRGDiskView.m +++ b/Graph Views/XRGDiskView.m @@ -39,7 +39,7 @@ @implementation XRGDiskView - (void)awakeFromNib { currentIndex = 0; - maxVal = 0; + maxVal = 1; fastMax = 1024 * 1024; parentWindow = (XRGGraphWindow *)[self window]; @@ -456,6 +456,8 @@ - (void)clearData:(NSEvent *)theEvent { readValues[i] = 0; writeValues[i] = 0; } + + maxVal = 1; } - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent {