Skip to content

Commit 59f040b

Browse files
committed
Fix a drawing bug in the temperature graph.
1 parent 1f43126 commit 59f040b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graph Views/XRGTemperatureView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ - (void)drawGraph {
332332

333333
// Draw the graph.
334334
[gc setShouldAntialias:[appSettings antiAliasing]];
335-
NSRect graphRect = NSMakeRect(self.bounds.origin.x, self.bounds.origin.y, self.bounds.size.width, NSMaxY(textRect) - self.bounds.origin.y - 2);
335+
NSRect graphRect = NSMakeRect(self.bounds.origin.x, self.bounds.origin.y, self.bounds.size.width, NSMinY(textRect) - self.bounds.origin.y - 2);
336336

337337
if (sensor1.dataSet) {
338338
float min = sensor1IsFan ? 0 : temperatureMin;

0 commit comments

Comments
 (0)