Changeset 14061
- Timestamp:
- 06/04/12 16:06:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/Evidence/GUI.cc
r12942 r14061 370 370 } 371 371 } 372 372 373 373 // Generate new curve and subscribe to service 374 374 struct ItemDetails N; … … 383 383 legend()->remove(N.Curve); 384 384 legend()->insert(N.Curve, (QWidget *) Legend); 385 385 386 386 // Context menu might delete curve and legend -> seg fault if using direct connection, as legend item deleted 387 387 connect(Legend, SIGNAL(DeleteCurve(QwtPlotCurve *)), this, SLOT(RemoveService(QwtPlotCurve *)), Qt::QueuedConnection); … … 391 391 392 392 for (int i=0; i<Hist.DataText.size(); i++) { 393 AddPoint(List.size()-1, Hist.DataText[i].first, Hist.DataText[i].second.at(N.Index).toFloat()); 393 if (Hist.DataText[i].second.size() > N.Index) { 394 AddPoint(List.size()-1, Hist.DataText[i].first, Hist.DataText[i].second.at(N.Index).toFloat()); 395 } 394 396 } 395 397
Note:
See TracChangeset
for help on using the changeset viewer.