Fix numeric issue with newer compiler version when spatial extents for x- or y-axis are zero.
@@ -1107,7 +1107,7 @@ Digits(double min, double max )
int ipow10 = (int)floor(pow10);
int digitsPastDecimal = -ipow10;
- if (digitsPastDecimal < 0)
+ if (!isfinite(pow10) || digitsPastDecimal < 0)
{
//
// The range is more than 10, but not so big we need scientific
