[gtk+/wip/baedert/drawing: 66/371] label: Fix clipping
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/wip/baedert/drawing: 66/371] label: Fix clipping
 
- Date: Sun, 16 Jul 2017 15:27:22 +0000 (UTC)
 
commit b2d356fefc41b2e67ca0a059ac134a58c7db5598
Author: Timm Bäder <mail baedert org>
Date:   Thu May 4 17:32:02 2017 +0200
    label: Fix clipping
    
    We were using an uninitialized value here.
 gtk/gtklabel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 38589c3..e027238 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3730,7 +3730,7 @@ gtk_label_size_allocate (GtkWidget     *widget,
 {
   GtkLabel *label = GTK_LABEL (widget);
   GtkLabelPrivate *priv = label->priv;
-  GdkRectangle clip_rect, clip;
+  GdkRectangle clip_rect;
 
   GTK_WIDGET_CLASS (gtk_label_parent_class)->size_allocate (widget, allocation);
 
@@ -3738,7 +3738,7 @@ gtk_label_size_allocate (GtkWidget     *widget,
     gtk_label_update_layout_width (label);
 
   gtk_label_get_ink_rect (label, &clip_rect);
-  gdk_rectangle_union (&clip_rect, &clip, &clip_rect);
+  gdk_rectangle_union (&clip_rect, allocation, &clip_rect);
   gtk_widget_set_clip (widget, &clip_rect);
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]