oversensible assertion
- From: Tim Janik <timj gtk org>
- To: Owen Taylor <otaylor gtk org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: oversensible assertion
- Date: Fri, 23 Aug 2002 20:58:52 +0200 (CEST)
hey owen,
the canvas does:
case PROP_TEXT:
if (text->text)
g_free (text->text);
text->text = g_value_dup_string (value);
pango_layout_set_text (text->layout, text->text, -1);
text->priv->render_dirty = 1;
break;
if g_value_dup_string(value) returns NULL, this triggers an assertion
in pango:
** CRITICAL **: file pango-layout.c: line 728 (pango_layout_set_text): assertion `length == 0 || text != NULL' failed
aborting...
maybe that assertion should be (length < 1 || text != NULL) ?
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]