mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-03 20:57:39 -06:00
Guard against stepsize < 0 in tickMarkGenerator
This commit is contained in:
parent
3c26640f56
commit
b13422d28b
@ -47,6 +47,8 @@ class TickMarkGenerator
|
||||
public:
|
||||
TickMarkGenerator(double min, double max, double minAllowedStepSize)
|
||||
{
|
||||
if (minAllowedStepSize < 0.0) minAllowedStepSize = -minAllowedStepSize;
|
||||
|
||||
double step = roundUpToLog_1_2_5_10(minAllowedStepSize);
|
||||
|
||||
double startStepCount = ceil(min / step);
|
||||
|
Loading…
Reference in New Issue
Block a user