Also query unsupported field data for the TransCalculator.

FiedlPropsManager::keys() list the FieldProperties needed by the
TransCalculator, but these cannot be queried the normal way as this
raises exceptions and results in a deadlock. Hence we use the new
funtionality to get also the unsupported ones, by passing true to
get_double_field_data.
This commit is contained in:
Markus Blatt 2020-09-17 22:23:04 +02:00
parent fd2a0d8a7d
commit abff765c1d

View File

@ -118,7 +118,10 @@ public:
for (const auto& doubleKey : m_doubleKeys)
{
const auto& fieldData = globalProps.get_double_field_data(doubleKey);
// We need to allow unsupported keywords to get the data
// for TranCalculator, too.
const auto& fieldData = globalProps.get_double_field_data(doubleKey,
/* allow_unsupported = */ true);
data.push_back(std::make_pair(fieldData.data[index],
static_cast<unsigned char>(fieldData.value_status[index])));
}