diff options
Diffstat (limited to 'tkblt/generic')
-rw-r--r-- | tkblt/generic/tkbltGrAxis.C | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tkblt/generic/tkbltGrAxis.C b/tkblt/generic/tkbltGrAxis.C index 8532600..418abbb 100644 --- a/tkblt/generic/tkbltGrAxis.C +++ b/tkblt/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) { |