Commit dcc2896f authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod

Fix uninitialized width variable.

2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
        variable.


svn path=/trunk/; revision=17069
parent c0614d3a
2007-01-04 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtklabel.c (get_layout_location): Fix uninitialized width
variable.
2007-01-04 Matthias Clasen <mclasen@redhat.com>
* gtk/Makefile.am:
......
......@@ -2298,11 +2298,11 @@ get_layout_location (GtkLabel *label,
int width;
PangoRectangle logical;
width = pango_layout_get_width (label->layout);
pango_layout_get_pixel_extents (label->layout, NULL, &logical);
req_width = logical.width;
if (width != -1)
req_width = MIN(PANGO_PIXELS (width), req_width);
/* width may be -1 */
req_width = MIN(PANGO_PIXELS (width), logical.width);
req_width += 2 * misc->xpad;
}
else
......
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