oversensible assertion



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]