Permalink
Browse files

Fix Overview SEGV

.. chart->isVisible() for META crashes, so check it
   isn't NULL first, will fixup when add charting
   numeric meta fields in a sparkline.
  • Loading branch information...
1 parent 598d7c5 commit eadb92172ab1f1051e66725164a7bde2bcaf066d @liversedge liversedge committed Feb 16, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Charts/OverviewWindow.cpp
@@ -781,7 +781,7 @@ Card::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) {
}
// paint the range if the chart is shown
- if (showrange && chart->isVisible()) {
+ if (showrange && chart && chart->isVisible()) {
// in small font max min at top bottom right of chart
double top = chart->geometry().top();
double bottom = chart->geometry().bottom();

0 comments on commit eadb921

Please sign in to comment.