Skip to content
Snippets Groups Projects
Commit a95c187b authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

fix rlx_get_all_spectra to actually use the real spectra ids

parent fddaed9e
Branches master
No related tags found
No related merge requests found
......@@ -430,7 +430,7 @@ struct rlx_spectra** rlx_get_all_spectra(struct rlxfile* file, const struct rlx_
struct rlx_spectra **out = malloc(sizeof(*out)*(length+1));
size_t index = 0;
for(size_t i = 0; i < length; ++i) {
out[index] = rlx_get_spectra(file, project, i);
out[index] = rlx_get_spectra(file, project, ids[i]);
if(out[index])
++index;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment