forked from AuroraMiddleware/gtk
Merge branch 'cherry-pick-ae2ef147' into 'master'
gtk: fix weed_out_neg_zero() in spinbutton and scale See merge request GNOME/gtk!906
This commit is contained in:
commit
3ae15aad16
@ -1544,7 +1544,7 @@ weed_out_neg_zero (gchar *str,
|
||||
gchar neg_zero[8];
|
||||
g_snprintf (neg_zero, 8, "%0.*f", digits, -0.0);
|
||||
if (strcmp (neg_zero, str) == 0)
|
||||
memmove (str, str + 1, strlen (str) - 1);
|
||||
memmove (str, str + 1, strlen (str));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
@ -1101,7 +1101,7 @@ weed_out_neg_zero (gchar *str,
|
||||
gchar neg_zero[8];
|
||||
g_snprintf (neg_zero, 8, "%0.*f", digits, -0.0);
|
||||
if (strcmp (neg_zero, str) == 0)
|
||||
memmove (str, str + 1, strlen (str) - 1);
|
||||
memmove (str, str + 1, strlen (str));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user