mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Statistics dialog. Fix crash when values equals INF
This commit is contained in:
@@ -58,7 +58,7 @@ class Rim3dOverlayInfoConfig : public caf::PdmObject
|
||||
double weightedMean;
|
||||
const std::vector<size_t>* histogram;
|
||||
|
||||
bool isValid() { return histogram && histogram->size() > 0; }
|
||||
bool isValid() { return histogram && histogram->size() > 0 && min != HUGE_VAL && max != HUGE_VAL; }
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user