From dae373bcbb067b228bff6012f33ef56699909c23 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 23 Apr 2003 18:14:51 +0000 Subject: [PATCH] * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid `get_interface'. --- ChangeLog | 5 +++++ src/base/ftbdf.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a1be1a227..387879e7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-23 Joe Marcus Clarke + + * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid + `get_interface'. + 2003-04-23 Paul Miller * src/base/ftmac.c (parse_fond): Fix handling of style names. diff --git a/src/base/ftbdf.c b/src/base/ftbdf.c index 54e73d444..63e3071c1 100644 --- a/src/base/ftbdf.c +++ b/src/base/ftbdf.c @@ -90,11 +90,15 @@ BDF_GetPropertyFunc func; - func = (BDF_GetPropertyFunc)driver->root.clazz->get_interface( - FT_MODULE( driver ), "get_bdf_property" ); - if ( func ) - error = func( face, prop_name, aproperty ); + if ( driver->root.clazz->get_interface ) + { + func = (BDF_GetPropertyFunc)driver->root.clazz->get_interface( + FT_MODULE( driver ), "get_bdf_property" ); + if ( func ) + error = func( face, prop_name, aproperty ); + } } + return error; }