Avoid shadowing a variable
Move bg_color variable to an inner scope.
This commit is contained in:
@ -4117,8 +4117,6 @@ gtk_label_draw (GtkWidget *widget,
|
|||||||
|
|
||||||
if (priv->text && (*priv->text != '\0'))
|
if (priv->text && (*priv->text != '\0'))
|
||||||
{
|
{
|
||||||
GdkRGBA bg_color, fg_color;
|
|
||||||
|
|
||||||
get_layout_location (label, &x, &y);
|
get_layout_location (label, &x, &y);
|
||||||
|
|
||||||
context = gtk_widget_get_style_context (widget);
|
context = gtk_widget_get_style_context (widget);
|
||||||
@ -4138,6 +4136,7 @@ gtk_label_draw (GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
gint range[2];
|
gint range[2];
|
||||||
cairo_region_t *clip;
|
cairo_region_t *clip;
|
||||||
|
GdkRGBA bg_color, fg_color;
|
||||||
|
|
||||||
range[0] = info->selection_anchor;
|
range[0] = info->selection_anchor;
|
||||||
range[1] = info->selection_end;
|
range[1] = info->selection_end;
|
||||||
|
|||||||
Reference in New Issue
Block a user