mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fixed overview Y-Axis graph scaling
This commit is contained in:
parent
87b3ca2355
commit
fedd464878
@ -406,18 +406,10 @@ void SummaryChart::paint(QPainter &painter, gGraph &w, const QRegion ®ion)
|
||||
qint64 xx = maxx - minx;
|
||||
float days = double(xx) / 86400000.0;
|
||||
|
||||
EventDataType maxy;
|
||||
EventDataType miny;
|
||||
EventDataType miny = m_physminy;
|
||||
EventDataType maxy = m_physmaxy;
|
||||
|
||||
if (w.zoomY() == 0 && PROFILE.appearance->allowYAxisScaling()) {
|
||||
maxy = m_physmaxy;
|
||||
miny = m_physminy;
|
||||
w.roundY(miny, maxy);
|
||||
} else {
|
||||
maxy = m_maxy;
|
||||
miny = m_miny;
|
||||
w.roundY(miny, maxy);
|
||||
}
|
||||
|
||||
EventDataType yy = maxy - miny;
|
||||
EventDataType ymult = float(height - 2) / yy;
|
||||
|
Loading…
Reference in New Issue
Block a user