diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-05-14 03:30:39 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-14 03:30:39 +0000 |
commit | 2fc15d31cf2fd3f416e2309adca113861205167f (patch) | |
tree | 443693d4c5d714386c0d9e2fd978c4ea7491bdf8 /gtk/gtktextview.c | |
parent | 8941969cb1756be13bf391689c25c75a9e537d1f (diff) | |
download | gtk+-2fc15d31cf2fd3f416e2309adca113861205167f.tar.gz |
Move an assert to the right place. (#341661, Pascal Terjan)
2006-05-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_allocate_children): Move
an assert to the right place. (#341661, Pascal Terjan)
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index ad5825994a..49b5dc2478 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -2901,6 +2901,8 @@ gtk_text_view_allocate_children (GtkTextView *text_view) { GtkTextViewChild *child = tmp_list->data; + g_assert (child != NULL); + if (child->anchor) { /* We need to force-validate the regions containing @@ -2933,8 +2935,6 @@ gtk_text_view_allocate_children (GtkTextView *text_view) GtkAllocation allocation; GtkRequisition child_req; - g_assert (child != NULL); - allocation.x = child->x; allocation.y = child->y; |