Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 6817ca5b858f8acf8bf28ced392b0f59 > files > 4

FlightGear-Atlas-0.4.0-0.5.cvs20100226.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