]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/open-type-font.cc
Fix crash when output-preview-framework is missing
[lilypond.git] / lily / open-type-font.cc
index 3bd52480a1e684f52215f337a9e3e04e3af4d50d..3d007be81130ea1bf76063ab9da61252931bcf77 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "open-type-font.hh"
@@ -108,7 +108,7 @@ open_ft_face (string str, FT_Long idx)
 SCM
 Open_type_font::make_otf (string str)
 {
-  FT_Face face = open_ft_face (str);
+  FT_Face face = open_ft_face (str, 0 /* index */);
   Open_type_font *otf = new Open_type_font (face);
 
   return otf->self_scm ();