mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +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;
|
qint64 xx = maxx - minx;
|
||||||
float days = double(xx) / 86400000.0;
|
float days = double(xx) / 86400000.0;
|
||||||
|
|
||||||
EventDataType maxy;
|
EventDataType miny = m_physminy;
|
||||||
EventDataType miny;
|
EventDataType maxy = m_physmaxy;
|
||||||
|
|
||||||
if (w.zoomY() == 0 && PROFILE.appearance->allowYAxisScaling()) {
|
|
||||||
maxy = m_physmaxy;
|
|
||||||
miny = m_physminy;
|
|
||||||
w.roundY(miny, maxy);
|
w.roundY(miny, maxy);
|
||||||
} else {
|
|
||||||
maxy = m_maxy;
|
|
||||||
miny = m_miny;
|
|
||||||
w.roundY(miny, maxy);
|
|
||||||
}
|
|
||||||
|
|
||||||
EventDataType yy = maxy - miny;
|
EventDataType yy = maxy - miny;
|
||||||
EventDataType ymult = float(height - 2) / yy;
|
EventDataType ymult = float(height - 2) / yy;
|
||||||
|
Loading…
Reference in New Issue
Block a user