Kaydet (Commit) 295869ce authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#74479: Treat empty cells as if they have a value of 0.

Change-Id: I3701848016c230138e8791f683a2c8b97219198d
üst 71fe47cf
......@@ -1612,7 +1612,16 @@ public:
}
break;
case mdds::mtm::element_empty:
std::advance(miPos, node.size);
{
// Empty element is equivalent of having a numeric value of 0.0.
for (size_t i = 0; i < node.size; ++i, ++miPos)
{
if (rtl::math::isNan(*miPos))
continue;
*miPos = op(*miPos, 0.0);
}
}
default:
;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment