label: Properly calculate half the height

Since we compare it to a double anyway, might as well divide by 2.0.
This commit is contained in:
Timm Bäder
2017-03-20 17:20:12 +01:00
parent 14a864c8b5
commit c371a86f54

View File

@@ -3406,7 +3406,7 @@ gtk_label_update_layout_width (GtkLabel *label)
x0 = width / 2;
y0 = dx ? x0 * dy / dx : G_MAXDOUBLE;
vertical = fabs (y0) > height / 2;
vertical = fabs (y0) > height / 2.0;
if (vertical)
{