core/sm_stringutil.cpp
changeset 2515 09a125a571ff
parent 2339 faa541e90718
child 2637 ed7b03e3bf16
     1.1 --- a/core/sm_stringutil.cpp	Wed Jan 07 16:43:23 2009 -0500
     1.2 +++ b/core/sm_stringutil.cpp	Wed Jan 07 19:23:24 2009 -0500
     1.3 @@ -281,7 +281,7 @@
     1.4  	}
     1.5  
     1.6  	// write the fraction part
     1.7 -	if (maxlen)
     1.8 +	if (maxlen && prec)
     1.9  	{
    1.10  		*buf++ = '.';
    1.11  		maxlen--;