window: use floor() instead of ceil()

Otherwise we get 111% instead of 110%.
This commit is contained in:
Christian Hergert
2016-09-28 18:08:34 -07:00
parent 60e917a5d1
commit 9bd3891d43

View File

@ -724,7 +724,7 @@ zoom_level_to_string (GBinding *binding,
gpointer user_data)
{
gdouble percent = 100.0 * g_value_get_double (from_value);
g_value_take_string (to_value, g_strdup_printf ("%u%%", (guint)ceil (percent)));
g_value_take_string (to_value, g_strdup_printf ("%u%%", (guint)floor (percent)));
return TRUE;
}