summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkbltGrAxis.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkbltGrAxis.C b/generic/tkbltGrAxis.C
index 8532600..418abbb 100644
--- a/generic/tkbltGrAxis.C
+++ b/generic/tkbltGrAxis.C
@@ -1049,6 +1049,10 @@ TickLabel* Axis::makeLabel(double value)
char string[TICK_LABEL_SIZE + 1];
+ // zero out any extremely small numbers
+ if (value<DBL_EPSILON && value>-DBL_EPSILON)
+ value =0;
+
if (ops->tickFormat && *ops->tickFormat) {
snprintf(string, TICK_LABEL_SIZE, ops->tickFormat, value);
} else if (ops->logScale) {