mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
PRS1 Intentional Leak fixes, potential ResetBounds crash fix
This commit is contained in:
parent
2a6c8b5ac7
commit
a77e64c72b
@ -1881,6 +1881,7 @@ void gGraphView::ResetBounds(bool refresh) //short group)
|
||||
}
|
||||
}
|
||||
if (!g) g=m_graphs[0];
|
||||
if (!g) return;
|
||||
|
||||
qint64 xx=g->max_x - g->min_x;
|
||||
double d=xx/86400000L;
|
||||
|
@ -42,7 +42,7 @@ EventDataType gLineChart::Miny()
|
||||
int m=Layer::Miny();
|
||||
if (subtract_offset>0) {
|
||||
m-=subtract_offset;
|
||||
// if (m<0) m=0;
|
||||
if (m<0) m=0;
|
||||
}
|
||||
return m;
|
||||
}
|
||||
@ -78,9 +78,9 @@ void gLineChart::paint(gGraph & w,int left, int top, int width, int height)
|
||||
|
||||
// hmmm.. subtract_offset..
|
||||
|
||||
if (miny<0) {
|
||||
/*if (miny<0) {
|
||||
miny=-MAX(fabs(miny),fabs(maxy));
|
||||
}
|
||||
}*/
|
||||
|
||||
w.roundY(miny,maxy);
|
||||
|
||||
|
@ -88,7 +88,7 @@ void SummaryChart::SetDay(Day * nullday)
|
||||
}
|
||||
if (suboffset>0) {
|
||||
tmp-=suboffset;
|
||||
//if (tmp<0) tmp=0;
|
||||
if (tmp<0) tmp=0;
|
||||
}
|
||||
//if (tmp>0) {
|
||||
fnd=true;
|
||||
|
@ -9,7 +9,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>599</width>
|
||||
<width>637</width>
|
||||
<height>330</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -38,7 +38,7 @@
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>4</number>
|
||||
<number>3</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="visualTab">
|
||||
<attribute name="title">
|
||||
@ -159,7 +159,7 @@
|
||||
This takes extra space, and has been known to cause problems on certain computer configurations, hence it's turned off by default.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Graph Snapshots</string>
|
||||
<string>Event B/down Piechart</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user