diff options
-rw-r--r-- | generic/tkbltGrAxis.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tkbltGrAxis.C b/generic/tkbltGrAxis.C index 418abbb..26560d0 100644 --- a/generic/tkbltGrAxis.C +++ b/generic/tkbltGrAxis.C @@ -902,6 +902,12 @@ void Axis::fixRange() (ops->reqMin >= ops->reqMax)) { ops->reqMin = ops->reqMax = NAN; } + if (ops->reqMin < -DBL_MAX) { + ops->reqMin = -DBL_MAX; + } + if (ops->reqMax > DBL_MAX) { + ops->reqMax = DBL_MAX; + } if (ops->logScale) { if ((!isnan(ops->reqMin)) && (ops->reqMin <= 0.0)) ops->reqMin = NAN; |