mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
Do not use C99 constant INFINITY
Use G_MAXDOUBLE instead
This commit is contained in:
parent
ba3e997dae
commit
c1d36af3e8
@ -3623,13 +3623,13 @@ gtk_label_size_allocate (GtkWidget *widget,
|
||||
gint cy;
|
||||
|
||||
x0 = bounds.width / 2;
|
||||
y0 = dx ? x0 * dy / dx : dy * INFINITY;
|
||||
y0 = dx ? x0 * dy / dx : G_MAXDOUBLE;
|
||||
vertical = fabs (y0) > bounds.height / 2;
|
||||
|
||||
if (vertical)
|
||||
{
|
||||
y0 = bounds.height/2;
|
||||
x0 = dy ? y0 * dx / dy : dx * INFINITY;
|
||||
x0 = dy ? y0 * dx / dy : G_MAXDOUBLE;
|
||||
}
|
||||
|
||||
length = 2 * sqrt (x0 * x0 + y0 * y0);
|
||||
|
Loading…
Reference in New Issue
Block a user