a dot.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2006-08-18 10:56:37 +00:00
parent 0ac4a4d33b
commit d5a6cf798c

View File

@ -291,7 +291,7 @@ char Fl_Preferences::set( const char *key, double value )
*/
char Fl_Preferences::set( const char *key, double value, int precision )
{
sprintf( nameBuffer, "%*g", precision, value );
sprintf( nameBuffer, "%.*g", precision, value );
node->set( key, nameBuffer );
return 1;
}