##// END OF EJS Templates
Minor, check for potentical division by zero in chartbackgorund
Michal Klocek -
r1884:f31e016200c3
parent child
Show More
@@ -83,6 +83,7 void ChartBackground::paint(QPainter *painter, const QStyleOptionGraphicsItem *o
83 83
84 84 int ChartBackground::roundness(qreal size) const
85 85 {
86 if(qFuzzyIsNull(size)) return 0;
86 87 return 100*m_diameter/int(size);
87 88 }
88 89
General Comments 0
You need to be logged in to leave comments. Login now