mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix Crash in correlation plot with no ensemble
This commit is contained in:
parent
09e14e173d
commit
c1847adfac
@ -384,7 +384,8 @@ std::vector<CorrelationMatrixRowOrColumn<ValueType, KeyType>>
|
||||
transpose( const std::vector<CorrelationMatrixRowOrColumn<KeyType, ValueType>>& matrix )
|
||||
{
|
||||
std::vector<CorrelationMatrixRowOrColumn<ValueType, KeyType>> transposedMatrix;
|
||||
for ( size_t rowIdx = 0u; rowIdx < matrix[0].m_correlations.size(); ++rowIdx )
|
||||
|
||||
for ( size_t rowIdx = 0u; !matrix.empty() && rowIdx < matrix[0].m_correlations.size(); ++rowIdx )
|
||||
{
|
||||
ValueType key = matrix[0].m_values[rowIdx];
|
||||
std::vector<double> correlations;
|
||||
|
Loading…
Reference in New Issue
Block a user