mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Only show histogram statistics in info overlay box if the histogram has valid data.
This commit is contained in:
@@ -70,9 +70,9 @@ class Rim3dOverlayInfoConfig : public caf::PdmObject
|
||||
double sum;
|
||||
double weightedMean;
|
||||
const std::vector<size_t>* histogram;
|
||||
bool isValid( double parameter ) { return parameter != HUGE_VAL && parameter != -HUGE_VAL; }
|
||||
bool isValid( double parameter ) const { return parameter != HUGE_VAL && parameter != -HUGE_VAL; }
|
||||
|
||||
bool isValid() { return histogram && histogram->size() > 0 && isValid( min ) && isValid( max ); }
|
||||
bool isValid() const { return histogram && histogram->size() > 0 && isValid( min ) && isValid( max ); }
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user