gtkscale: Properly initialize the clip

This commit is contained in:
Timm Bäder
2017-05-05 13:19:05 +02:00
committed by Matthias Clasen
parent c87be0a27a
commit c3ffad1fb3

View File

@@ -598,12 +598,12 @@ gtk_scale_size_allocate (GtkWidget *widget,
{
GtkScale *scale = GTK_SCALE (widget);
GtkScalePrivate *priv = scale->priv;
GtkAllocation clip, marks_clip, range_rect, marks_rect;
GtkAllocation clip = *allocation;
GtkAllocation marks_clip, range_rect, marks_rect;
GtkOrientation orientation;
GTK_WIDGET_CLASS (gtk_scale_parent_class)->size_allocate (widget, allocation);
gtk_widget_get_clip (widget, &clip);
orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));
gtk_range_get_range_rect (GTK_RANGE (scale), &range_rect);