##// END OF EJS Templates
Fix bug with null parent of selectedItem
perrinel -
r1375:8614c945da0f
parent child
Show More
@@ -39,7 +39,10 void VisualizationSelectionZoneManager::clearSelection()
39 39 {
40 40 for (auto item : impl->m_SelectedItems) {
41 41 item->setSelected(false);
42 item->parentPlot()->replot(QCustomPlot::rpQueuedReplot);
42 auto parentPlot = item->parentPlot();
43 if (parentPlot) {
44 parentPlot->replot(QCustomPlot::rpQueuedReplot);
45 }
43 46 }
44 47
45 48 impl->m_SelectedItems.clear();
General Comments 0
You need to be logged in to leave comments. Login now