Commit 62f0bf5c authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

try fix m_set_bounds crash

parent cd6b3244
...@@ -164,7 +164,14 @@ ...@@ -164,7 +164,14 @@
</property> </property>
</widget> </widget>
</item> </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"> <widget class="QLabel" name="lTitle">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
...@@ -186,13 +193,6 @@ ...@@ -186,13 +193,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="3">
<widget class="QPushButton" name="pbApplyWlens">
<property name="text">
<string>APPLY</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
......
...@@ -111,7 +111,7 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) { ...@@ -111,7 +111,7 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) {
printf("\e[0;33mdata %s -- timestamp %f\e[0m\n", datos(da), x); printf("\e[0;33mdata %s -- timestamp %f\e[0m\n", datos(da), x);
for(int i = 0; i < m_lambda_idxs.size(); i++) { for(int i = 0; i < m_lambda_idxs.size(); i++) {
const QString curveName = QString("lambda %1").arg(m_lambda_idxs[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]]; qDebug() << __PRETTY_FUNCTION__ << "APPENDING" << QDateTime::fromMSecsSinceEpoch(x) << yv[m_lambda_idxs[i]];
m_set_bounds(xv, yv, curve(curveName)->dataSize()); m_set_bounds(xv, yv, curve(curveName)->dataSize());
appendData(curveName, m_lambda_idxs[i], yv[m_lambda_idxs[i]]); appendData(curveName, m_lambda_idxs[i], yv[m_lambda_idxs[i]]);
......
Markdown is supported
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