diff options
author | Havoc Pennington <hp@redhat.com> | 2000-12-14 23:23:14 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-12-14 23:23:14 +0000 |
commit | 016c4d7047fd3ac2f76667f4ffe3b3a22ad0b902 (patch) | |
tree | 740872633a5f6f1ffda8dbf8a01e5249e9ff85de /pango/fonts.c | |
parent | 1b3ed686bdc299ab5b79eeb8a485f6d84189f4e6 (diff) | |
download | pango-016c4d7047fd3ac2f76667f4ffe3b3a22ad0b902.tar.gz |
add assertion that shaper != NULL to catch engine problems faster
2000-12-14 Havoc Pennington <hp@redhat.com>
* pango/fonts.c (pango_font_find_shaper): add assertion that
shaper != NULL to catch engine problems faster
* pango/Makefile.am (libpangox_la_SOURCES): modules.[hc] and
module-defs.c have to go in libpangox for now since the modules
use the X stuff, and static linkage won't let you play games here
* examples/Makefile.am (pango_viewer_LDADD): fix order of link
* modules/indic/pango-indic-script.h (pango_indic_get_char): make
this a macro, so it doesn't collide between modules
* modules/*/Makefile.am: Fix to work if the module isn't included
* examples/Makefile.am: don't query modules if we didn't build any
* modules/indic/gurmukhi.c (MODULE_ENTRY): fix prefix
* modules/indic/bengali.c (MODULE_ENTRY): fix prefix
* modules/indic/gujarati.c (MODULE_ENTRY): fix prefix
* modules/indic/devanagari.c (MODULE_ENTRY): fix prefix
* modules/indic/myanmar.c (MODULE_ENTRY): uniquely prefix the functions
* modules/Makefile.am (MODULES): handle case where there are no
modules to query
* configure.in: Fix up include_modules stuff to work with Indic
* pango/glyphstring.c (pango_glyph_string_set_size): Just
g_error() if the glyph string exceeds maximum integer size,
instead of mysteriously crashing later.
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index d0bee3d3..d390de81 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -472,9 +472,15 @@ pango_font_find_shaper (PangoFont *font, const char *lang, guint32 ch) { + PangoEngineShape* shaper; + g_return_val_if_fail (font != NULL, NULL); - return PANGO_FONT_GET_CLASS (font)->find_shaper (font, lang, ch); + shaper = PANGO_FONT_GET_CLASS (font)->find_shaper (font, lang, ch); + + g_assert (shaper != NULL); + + return shaper; } /** |