I forgot
a dot. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
0ac4a4d33b
commit
d5a6cf798c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user