]> granicus.if.org Git - libass/commitdiff
fontselect: fix fallback family fallback
authorGrigori Goronzy <greg@chown.ath.cx>
Sun, 6 Sep 2015 23:34:48 +0000 (01:34 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Mon, 7 Sep 2015 00:18:29 +0000 (02:18 +0200)
libass/ass_fontselect.c

index fb090888eb3854d403c686c6bb2e6d096a5f80d2..0c37bb5eccad102dcfabae6ff8256602e7af4e64 100644 (file)
@@ -665,7 +665,7 @@ char *ass_font_select(ASS_FontSelector *priv, ASS_Library *library,
         if (!search_family || !*search_family)
             search_family = "Arial";
         char *fallback_family = default_provider->funcs.get_fallback(
-                default_provider->priv, family, code);
+                default_provider->priv, search_family, code);
 
         if (fallback_family) {
             res = select_font(priv, library, fallback_family, bold, italic,