shithub: freetype+ttf2subf

Download patch

ref: 8b61525b9ac44d4ca37524b7e3b588e9f3c9870d
parent: fcc5c9115f69d43635e7775b497f52a0d0daa6df
author: Werner Lemberg <[email protected]>
date: Wed Apr 23 14:14:51 EDT 2003

* src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid
`get_interface'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-23  Joe Marcus Clarke  <[email protected]>
+
+	* src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid
+	`get_interface'.
+
 2003-04-23  Paul Miller  <[email protected]>
 
 	* src/base/ftmac.c (parse_fond): Fix handling of style names.
--- 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;
   }