Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 00d36b384de19c81aefeeffacdec840b > files > 3

FlightGear-Atlas-0.4.8-0.1.cvs20100719.fc13.src.rpm

diff -uNrp Atlas.orig/src/Graphs.cxx Atlas/src/Graphs.cxx
--- Atlas.orig/src/Graphs.cxx	2010-01-31 23:59:55.000000000 +0100
+++ Atlas/src/Graphs.cxx	2010-03-11 09:26:26.678024444 +0100
@@ -1289,7 +1289,10 @@ void Graphs::Values::drawAxis(float from
 
 	// Now label the axis.
 	AtlasString format, buf;
-	format.printf("%%.%df", _decimals);
+	if (_decimals > 0)
+	    format.printf("%%.%df", _decimals);
+	else
+	    format.printf("%%.f");
 	for (int i = 0; i <= intervals; i++) {
 	    float tick = from + (i * _d);
 	    // In general, we just label major ticks.  However, there