Skip to content
Snippets Groups Projects
Commit 62f0bf5c authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

try fix m_set_bounds crash

parent cd6b3244
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,14 @@
</property>
</widget>
</item>
<item row="0" column="4" colspan="5">
<item row="4" column="3">
<widget class="QPushButton" name="pbApplyWlens">
<property name="text">
<string>APPLY</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="9">
<widget class="QLabel" name="lTitle">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
......@@ -186,13 +193,6 @@
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QPushButton" name="pbApplyWlens">
<property name="text">
<string>APPLY</string>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
......
......@@ -111,7 +111,7 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) {
printf("\e[0;33mdata %s -- timestamp %f\e[0m\n", datos(da), x);
for(int i = 0; i < m_lambda_idxs.size(); i++) {
const QString curveName = QString("lambda %1").arg(m_lambda_idxs[i]);
if(m_lambda_idxs[i] < static_cast<int>(yv.size()) ) {
if(m_lambda_idxs[i] < static_cast<int>(yv.size()) && curve(curveName) != nullptr ) {
qDebug() << __PRETTY_FUNCTION__ << "APPENDING" << QDateTime::fromMSecsSinceEpoch(x) << yv[m_lambda_idxs[i]];
m_set_bounds(xv, yv, curve(curveName)->dataSize());
appendData(curveName, m_lambda_idxs[i], yv[m_lambda_idxs[i]]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment