From 7a2556deb83d08c8486ef82e2577b3e52d3682f5 2012-03-26 09:27:51 From: Jani Honkonen Date: 2012-03-26 09:27:51 Subject: [PATCH] PieSliceItem bounding rect fix --- diff --git a/src/piechart/piesliceitem.cpp b/src/piechart/piesliceitem.cpp index d49eaeb..fe5cc9c 100644 --- a/src/piechart/piesliceitem.cpp +++ b/src/piechart/piesliceitem.cpp @@ -107,7 +107,10 @@ void PieSliceItem::updateGeometry() m_labelTextRect.moveBottomLeft(labelTextStart); // update bounding rect - m_boundingRect = m_slicePath.boundingRect().united(m_labelArmPath.boundingRect()).united(m_labelTextRect); + if (m_data.m_isLabelVisible) + m_boundingRect = m_slicePath.boundingRect().united(m_labelArmPath.boundingRect()).united(m_labelTextRect); + else + m_boundingRect = m_slicePath.boundingRect(); } QPointF PieSliceItem::sliceCenter(QPointF point, qreal radius, QPieSlice *slice)