From f62932e0ed90458832fd57fb70c1992c0bc93261 2012-03-20 10:01:16 From: Jani Honkonen Date: 2012-03-20 10:01:16 Subject: [PATCH] Bugfix for piechartcustomization --- diff --git a/demos/piechartcustomization/main.cpp b/demos/piechartcustomization/main.cpp index 3460ec5..fca72a2 100644 --- a/demos/piechartcustomization/main.cpp +++ b/demos/piechartcustomization/main.cpp @@ -535,7 +535,7 @@ public Q_SLOTS: void addSlice() { - *m_series << new CustomSlice(10.0, "Slice " + QString::number(m_series->count())); + *m_series << new CustomSlice(10.0, "Slice " + QString::number(m_series->count()+1)); } void insertSlice() @@ -545,7 +545,7 @@ public Q_SLOTS: int i = m_series->slices().indexOf(m_slice); - m_series->insert(i, new CustomSlice(10.0, "Slice " + QString::number(m_series->count()))); + m_series->insert(i, new CustomSlice(10.0, "Slice " + QString::number(m_series->count()+1))); } void removeSlice()