diff --git a/gui/us_gui_util.cpp b/gui/us_gui_util.cpp index 86b83e0e5..846e56aa9 100644 --- a/gui/us_gui_util.cpp +++ b/gui/us_gui_util.cpp @@ -137,6 +137,10 @@ int US_GuiUtil::save_csv( const QString& filename, const QwtPlot* plot ) int max_length = 0; for ( QwtPlotItem* item: plot->itemList( QwtPlotItem::Rtti_PlotCurve ) ) { + if ( item->rtti() != QwtPlotItem::Rtti_PlotCurve ) + { + continue; + } // create two Vectors for x and y respective QVector x_data; x_data.clear();