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)
+ * gtk/gtktextbtree.c:
+ * gtk/gtktextview.c: Move some asserts to the right
+ place. (#341661, #341665, Pascal Terjan)
2006-05-12 Matthias Clasen <mclasen@redhat.com>
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)
+ * gtk/gtktextbtree.c:
+ * gtk/gtktextview.c: Move some asserts to the right
+ place. (#341661, #341665, Pascal Terjan)
2006-05-12 Matthias Clasen <mclasen@redhat.com>
while (offset >= seg->byte_count)
{
- g_assert (seg != NULL); /* means an invalid byte index */
offset -= seg->byte_count;
seg = seg->next;
+ g_assert (seg != NULL); /* means an invalid byte index */
}
if (seg_offset)
while (offset >= seg->char_count)
{
- g_assert (seg != NULL); /* means an invalid char index */
offset -= seg->char_count;
seg = seg->next;
+ g_assert (seg != NULL); /* means an invalid char index */
}
if (seg_offset)
while (offset > 0 && offset >= seg->byte_count)
{
- g_assert (seg != NULL); /* means an invalid byte index */
offset -= seg->byte_count;
seg = seg->next;
+ g_assert (seg != NULL); /* means an invalid byte index */
}
if (seg_offset)
while (offset > 0 && offset >= seg->char_count)
{
- g_assert (seg != NULL); /* means an invalid byte index */
offset -= seg->char_count;
seg = seg->next;
+ g_assert (seg != NULL); /* means an invalid byte index */
}
if (seg_offset)
while (byte_offset >= seg->byte_count) /* while (we need to go farther than
the next segment) */
{
- g_assert (seg != NULL); /* our byte_index was bogus if this happens */
-
byte_offset -= seg->byte_count;
char_offset += seg->char_count;
-
seg = seg->next;
+ g_assert (seg != NULL); /* our byte_index was bogus if this happens */
}
g_assert (seg != NULL);