Commit 77fc62a1 authored by GMT 2000 Andy Thomas's avatar GMT 2000 Andy Thomas Committed by Andy Thomas
Browse files

plug-ins/xjt/xjt.c

Thu Feb  3 21:45:45 GMT 2000 Andy Thomas <alt@gimp.org>

	* plug-ins/xjt/xjt.c

	Included patch supplied by wolfgang hofer.
parent f09dd07f
Thu Feb 3 21:45:45 GMT 2000 Andy Thomas <alt@gimp.org>
* plug-ins/xjt/xjt.c
Included patch supplied by wolfgang hofer.
2000-02-03 Michael Natterer <mitch@gimp.org>
 
* libgimp/gimpwidgets.[ch] gimp_coordinates_new():
......
......@@ -863,10 +863,17 @@ p_float_to_str(gdouble flt_val)
l_idx = strlen(l_str) -1;
while(l_idx > 0)
{
if((l_str[l_idx] == '0') || (l_str[l_idx] == '.')) l_str[l_idx] = '\0';
else break;
if(l_str[l_idx] != '0')
{
break;
}
l_str[l_idx] = '\0';
l_idx--;
}
if(l_str[l_idx] == '.')
{
l_str[l_idx] = '\0';
}
return(l_str);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment