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)
This commit is contained in:
Matthias Clasen 2006-05-14 03:30:39 +00:00 committed by Matthias Clasen
parent 8941969cb1
commit 2fc15d31cf
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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)
2006-05-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c: Fix some corner cases in the size

View File

@ -1,3 +1,8 @@
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)
2006-05-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c: Fix some corner cases in the size

View File

@ -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;