After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 447189 - fonts.c: pango_font_face_is_synthesized returns NULL
fonts.c: pango_font_face_is_synthesized returns NULL
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.17.x
Other All
: Normal minor
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2007-06-13 15:55 UTC by Kazuki Iwamoto
Modified: 2007-06-13 21:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2007-06-13 15:55:27 UTC
Please describe the problem:
pango_font_face_is_synthesized returns gboolean value (TRUE or FALSE).
But it returns NULL pointer if 'face' is not 'PangoFontFace'.

Steps to reproduce:
1.compile pango/fonts.c

Actual results:
An error will occur at pango_font_face_is_synthesized.

Expected results:
pango_font_face_is_synthesized should be return FALSE if 'face' is not 'PangoFontFace'.
For example,
  g_return_val_if_fail (PANGO_IS_FONT_FACE (face), FALSE);

Does this happen every time?
Revision 2342 or later

Other information:
Comment 1 Behdad Esfahbod 2007-06-13 21:31:31 UTC
2007-06-13  Behdad Esfahbod  <behdad@gnome.org>

        Bug 447189 – fonts.c: pango_font_face_is_synthesized returns NULL

        * pango/fonts.c (pango_font_face_is_synthesized): Fix
        return value.