diff options
-rw-r--r-- | pango/itemize.c | 2 | ||||
-rw-r--r-- | pango/pango-utils.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/pango/itemize.c b/pango/itemize.c index 442fe8e9..01399b7e 100644 --- a/pango/itemize.c +++ b/pango/itemize.c @@ -1546,6 +1546,8 @@ pango_itemize_with_font (PangoContext *context, { ItemizeState state; + g_return_val_if_fail (context->font_map != NULL, NULL); + if (length == 0 || g_utf8_get_char (text + start_index) == '\0') return NULL; diff --git a/pango/pango-utils.c b/pango/pango-utils.c index 886e3d1d..b942921e 100644 --- a/pango/pango-utils.c +++ b/pango/pango-utils.c @@ -1171,9 +1171,9 @@ _pango_shape_get_extents (gint n_chars, * or Unicode paragraph separator character. * * The index of the run of delimiters is returned in - * @paragraph_delimiter_index. The index of the start - * of the paragrap (index after all delimiters) is stored - * in @next_paragraph_start. + * @paragraph_delimiter_index. The index of the start of the + * next paragraph (index after all delimiters) is stored n + * @next_paragraph_start. * * If no delimiters are found, both @paragraph_delimiter_index * and @next_paragraph_start are filled with the length of @text |