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) ...@@ -139,9 +139,6 @@ Datafield* Util::RW::readNicos(std::istream& input_stream)
lineNumber)); lineNumber));
for (unsigned col = 0; col < width; ++col) { 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; int value = 0;
if (!Base::String::to_int(valuesAsString[col], &value)) if (!Base::String::to_int(valuesAsString[col], &value))
...@@ -149,7 +146,9 @@ Datafield* Util::RW::readNicos(std::istream& input_stream) ...@@ -149,7 +146,9 @@ Datafield* Util::RW::readNicos(std::istream& input_stream)
"Value '" + valuesAsString[col] + "' could not be converted to integer", "Value '" + valuesAsString[col] + "' could not be converted to integer",
lineNumber)); 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++; dataRow++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment