diff options
Diffstat (limited to 'generic/tkbltGrAxis.C')
-rw-r--r-- | generic/tkbltGrAxis.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkbltGrAxis.C b/generic/tkbltGrAxis.C index 418abbb..d4a2f00 100644 --- a/generic/tkbltGrAxis.C +++ b/generic/tkbltGrAxis.C @@ -1123,7 +1123,7 @@ double Axis::invVMap(double y) double Axis::hMap(double x) { AxisOptions* ops = (AxisOptions*)ops_; - if ((ops->logScale) && (x != 0.0)) { + if (ops->logScale) { x = log10(fabs(x)); } /* Map graph coordinate to normalized coordinates [0..1] */ @@ -1137,7 +1137,7 @@ double Axis::hMap(double x) double Axis::vMap(double y) { AxisOptions* ops = (AxisOptions*)ops_; - if ((ops->logScale) && (y != 0.0)) { + if (ops->logScale) { y = log10(fabs(y)); } /* Map graph coordinate to normalized coordinates [0..1] */ |