if (counter>0 && lineCount>0 && unsavedMeasurements && !macro && ij!=null && !ij.quitting()) {
YesNoCancelDialog d = new YesNoCancelDialog(ij, "ImageJ", "Save "+counter+" measurements?");
if (d.cancelPressed())
return false;
else if (d.yesPressed()) {
if (!(new MeasurementsWriter()).save(""))
return false;
}
}
umeans = null;
systemRT.reset();