diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp
index 9d50d270..7f21dcdf 100644
--- a/Graphs/gGraphView.cpp
+++ b/Graphs/gGraphView.cpp
@@ -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;
diff --git a/Graphs/gLineChart.cpp b/Graphs/gLineChart.cpp
index 9f11dfe2..7bcb8a78 100644
--- a/Graphs/gLineChart.cpp
+++ b/Graphs/gLineChart.cpp
@@ -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);
diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp
index ece75192..9c0ce8e9 100644
--- a/Graphs/gSummaryChart.cpp
+++ b/Graphs/gSummaryChart.cpp
@@ -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;
diff --git a/preferencesdialog.ui b/preferencesdialog.ui
index 8e3f888d..f6293b4d 100644
--- a/preferencesdialog.ui
+++ b/preferencesdialog.ui
@@ -9,7 +9,7 @@
0
0
- 599
+ 637
330
@@ -38,7 +38,7 @@
-
- 4
+ 3
@@ -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.
- Graph Snapshots
+ Event B/down Piechart