summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cpp/lineGraph.cpp3
-rw-r--r--src/cpp/lineGraph.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/lineGraph.cpp b/src/cpp/lineGraph.cpp
index be6fd86..7e013be 100644
--- a/src/cpp/lineGraph.cpp
+++ b/src/cpp/lineGraph.cpp
@@ -47,7 +47,8 @@ LineGraph::LineGraph()
void LineGraph::paint(QPainter *painter)
{
- if (!m_fileLoadStatus) {
+ if (m_filedata.count() < 2) {
+ qDebug() << "not rendering, not enough data";
return;
}
int j = m_filedata.count();
diff --git a/src/cpp/lineGraph.h b/src/cpp/lineGraph.h
index 59cbb68..4ee4655 100644
--- a/src/cpp/lineGraph.h
+++ b/src/cpp/lineGraph.h
@@ -76,7 +76,6 @@ private:
QColor m_color = QColor(255,255,255);
QPixmap m_pixmap;
QList<QPointF> m_filedata;
- bool m_fileLoadStatus;
int minValue = 0;
int maxValue = 0;
int minTime;