From 6244acef21353618b547586b4b940206ce0a9267 2013-10-11 06:41:25 From: Titta Heikkala Date: 2013-10-11 06:41:25 Subject: [PATCH] Fix pie slice label rotation Make sure previously set rotation is reset when the label position is changed to outside. Task-number: QTRD-2186 Change-Id: Ida0913748aa8a3313a7754878bec1b8c4c69659e Reviewed-by: Miikka Heikkinen --- diff --git a/src/piechart/piesliceitem.cpp b/src/piechart/piesliceitem.cpp index 942b711..79999da 100644 --- a/src/piechart/piesliceitem.cpp +++ b/src/piechart/piesliceitem.cpp @@ -175,6 +175,7 @@ void PieSliceItem::updateGeometry() m_labelItem->setTextWidth(m_labelTextRect.width() + m_labelItem->document()->documentMargin()); m_labelItem->setHtml(label); + m_labelItem->setRotation(0); m_labelItem->setPos(m_labelTextRect.x(), m_labelTextRect.y() + 1.0); } else { // label inside