Avoid shadowing a variable

Move bg_color variable to an inner scope.
This commit is contained in:
Paolo Borelli 2011-11-29 21:14:24 +01:00
parent 7fb00c919e
commit 58d247d7ae

View File

@ -4117,8 +4117,6 @@ gtk_label_draw (GtkWidget *widget,
if (priv->text && (*priv->text != '\0'))
{
GdkRGBA bg_color, fg_color;
get_layout_location (label, &x, &y);
context = gtk_widget_get_style_context (widget);
@ -4138,6 +4136,7 @@ gtk_label_draw (GtkWidget *widget,
{
gint range[2];
cairo_region_t *clip;
GdkRGBA bg_color, fg_color;
range[0] = info->selection_anchor;
range[1] = info->selection_end;