Skip to content
Snippets Groups Projects
Commit f06ccf20 authored by d22's avatar d22
Browse files

QE65000 controller, avoid crash if saving I0 when no spectrum measure done

parent ab8c770d
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ void QE65000Controller::setPlotName(int32 plotId) {
void QE65000Controller::makeAutozero() {
// We do not do a measure... we just copy the last spectrum done as our intensity0
if (!spectroDriver->commandStatus.isRunning()) {
if (!spectroDriver->commandStatus.isRunning() && yData.getSize() == size()) {
y0Data.update(yData());
y0Data.setSize(size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment