summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-03-22 19:07:24 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-03-22 19:07:24 (GMT)
commit578f5e49dd5fb687a6db12774e874474021f3bed (patch)
treeb9e6475f25ed9d4417d3a42a108faca7e70f505d /generic
parent73a5025a7df7e06044b871150c7ecff056fd0527 (diff)
downloadblt-578f5e49dd5fb687a6db12774e874474021f3bed.zip
blt-578f5e49dd5fb687a6db12774e874474021f3bed.tar.gz
blt-578f5e49dd5fb687a6db12774e874474021f3bed.tar.bz2
partial backout of zero value logscale merge
Diffstat (limited to 'generic')
-rw-r--r--generic/tkbltGrAxis.C4
1 files 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] */