##// END OF EJS Templates
Bugfix: Adding/removing slices erased users colors....
Jani Honkonen -
r1093:54b5044db4a6
parent child
Show More
@@ -185,6 +185,11 void ChartPresenter::setTheme(QChart::ChartTheme theme,bool force)
185 185 m_chartTheme->decorate(m_chart);
186 186 m_chartTheme->decorate(m_chart->legend());
187 187 resetAllElements();
188
189 // We do not want "force" to stay on.
190 // Bar/pie are calling decorate when adding/removing slices/bars which means
191 // that to preserve users colors "force" must not be on.
192 m_chartTheme->setForced(false);
188 193 }
189 194
190 195 QChart::ChartTheme ChartPresenter::theme()
General Comments 0
You need to be logged in to leave comments. Login now