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