Fix inverted sense of assert statement which led to lots of unpleasant crashes.

This commit is contained in:
Carl Worth 2005-08-11 16:52:43 +00:00
parent ba9cb14cdf
commit 56d299d277
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-11 Carl Worth <cworth@cworth.org>
* src/cairo-font.c (_cairo_toy_font_face_fini): Fix inverted sense
of assert statement which led to lots of unpleasant crashes.
2005-08-08 Carl Worth <cworth@cworth.org>
* src/cairoint.h: Add hash_entry field to cairo_font_face_t so

View file

@ -366,4 +366,9 @@ cairo_set_target_quartz
cairo_set_target_win32
cairo_set_target_xcb
cairo_set_target_drawable
CAIRO_VERSION
CAIRO_VERSION_STRING
CAIRO_VERSION_ENCODE
cairo_version
cairo_version_string
</SECTION>

View file

@ -289,7 +289,7 @@ _cairo_toy_font_face_fini (cairo_toy_font_face_t *font_face)
{
/* We assert here that we own font_face->family before casting
* away the const qualifer. */
assert (! font_face->owns_family);
assert (font_face->owns_family);
free ((char*) font_face->family);
}