diff --git a/src/piechart/piepresenter.cpp b/src/piechart/piepresenter.cpp index 362f828..88d053d 100644 --- a/src/piechart/piepresenter.cpp +++ b/src/piechart/piepresenter.cpp @@ -128,6 +128,7 @@ void PiePresenter::addSlice(QPieSlice* sliceData) // create slice PieSlice *slice = new PieSlice(this); + slice->setPieRect(m_pieRect); slice->updateData(sliceData); m_slices.insert(sliceData, slice);