summaryrefslogtreecommitdiffstats
path: root/examples/charts/callout
diff options
context:
space:
mode:
Diffstat (limited to 'examples/charts/callout')
-rw-r--r--examples/charts/callout/callout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/charts/callout/callout.cpp b/examples/charts/callout/callout.cpp
index c78693b6..d6e3efad 100644
--- a/examples/charts/callout/callout.cpp
+++ b/examples/charts/callout/callout.cpp
@@ -59,7 +59,7 @@ void Callout::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, Q
path.addRoundedRect(m_rect, 5, 5);
QPointF anchor = mapFromParent(m_chart->mapToPosition(m_anchor));
- if (!m_rect.contains(anchor)) {
+ if (!m_rect.contains(anchor) && !m_anchor.isNull()) {
QPointF point1, point2;
// establish the position of the anchor point in relation to m_rect