Skip to content
Snippets Groups Projects
Commit 6448e684 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

repair Nicos read-in

parent 26fe8d1a
No related branches found
No related tags found
1 merge request!2133J.833b
Pipeline #119979 failed
......@@ -139,9 +139,6 @@ Datafield* Util::RW::readNicos(std::istream& input_stream)
lineNumber));
for (unsigned col = 0; col < width; ++col) {
const size_t global_index = result->frame().toGlobalIndex(
{col, height - 1 - dataRow}); // y-axis "0" is at bottom => invert y
// to show first line at top of image
int value = 0;
if (!Base::String::to_int(valuesAsString[col], &value))
......@@ -149,7 +146,9 @@ Datafield* Util::RW::readNicos(std::istream& input_stream)
"Value '" + valuesAsString[col] + "' could not be converted to integer",
lineNumber));
(*result)[global_index] = value;
// y-axis "0" is at bottom => invert y
// to show first line at top of image
(*result)[(height - 1 - dataRow) * width + col] = value;
}
dataRow++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment