From 578f5e49dd5fb687a6db12774e874474021f3bed Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 22 Mar 2019 15:07:24 -0400 Subject: partial backout of zero value logscale merge --- generic/tkbltGrAxis.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tkbltGrAxis.C b/generic/tkbltGrAxis.C index be3e995..7c84593 100644 --- a/generic/tkbltGrAxis.C +++ b/generic/tkbltGrAxis.C @@ -1129,7 +1129,7 @@ double Axis::invVMap(double y) double Axis::hMap(double x) { AxisOptions* ops = (AxisOptions*)ops_; - if (ops->logScale) { + if ((ops->logScale) && (x != 0.0)) { x = log10(fabs(x)); } /* Map graph coordinate to normalized coordinates [0..1] */ @@ -1143,7 +1143,7 @@ double Axis::hMap(double x) double Axis::vMap(double y) { AxisOptions* ops = (AxisOptions*)ops_; - if (ops->logScale) { + if ((ops->logScale) && (y != 0.0)) { y = log10(fabs(y)); } /* Map graph coordinate to normalized coordinates [0..1] */ -- cgit v0.12