summaryrefslogtreecommitdiffstats
path: root/src/chartitem_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@digia.com>2012-03-22 11:33:50 +0200
committerMichal Klocek <michal.klocek@digia.com>2012-03-22 11:33:50 +0200
commit847ff650439d01ffba1652eb328d6dcb5a07b83c (patch)
tree55082ba860102610b1cf7b6f4654340ccc55348b /src/chartitem_p.h
parent15b9cd07deb23ba43f329ea68316d40c6f77cc6a (diff)
Bugfix : black line drawn during areachart paint
Diffstat (limited to 'src/chartitem_p.h')
-rw-r--r--src/chartitem_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chartitem_p.h b/src/chartitem_p.h
index 7bf7fa57..f03b64e5 100644
--- a/src/chartitem_p.h
+++ b/src/chartitem_p.h
@@ -11,7 +11,7 @@ class ChartItem : public QGraphicsItem, public Chart
{
enum ChartItemTypes{ AXIS_ITEM = UserType+1, XYLINE_ITEM};
public:
- ChartItem(ChartPresenter *presenter):QGraphicsItem(presenter->rootItem()),Chart(presenter){};
+ ChartItem(ChartPresenter *presenter):QGraphicsItem(presenter?presenter->rootItem():0),Chart(presenter){};
};
QTCOMMERCIALCHART_END_NAMESPACE