Skip to content
Snippets Groups Projects
Commit ef812667 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

spectra extraction bug correction

parent 98685e75
Branches
Tags
No related merge requests found
......@@ -82,12 +82,18 @@ public class BufferedFormatsAttributeManager extends BasicAttributeManager {
tdbTimeBuffer.put(completeName, time);
formatMap = tdbDataFormatBuffer;
}
int dataFormat;
Integer knownFormat = formatMap.get(completeName);
if (knownFormat == null) {
knownFormat = Integer.valueOf(super.getFormat(completeName, historic));
dataFormat = super.getFormat(completeName, historic);
if (dataFormat > -1) {
knownFormat = Integer.valueOf(dataFormat);
formatMap.put(completeName, knownFormat);
}
return knownFormat.intValue();
} else {
dataFormat = knownFormat.intValue();
}
return dataFormat;
}
// ///////////// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment