changeset 26659:9e1d66c990fa

If both full name and family are available, use the former in inexact match warning.
author eugeni
date Thu, 08 May 2008 13:53:58 +0000
parents 1e1ebebc8f5b
children ab5729095d68
files libass/ass_fontconfig.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_fontconfig.c	Thu May 08 13:53:56 2008 +0000
+++ b/libass/ass_fontconfig.c	Thu May 08 13:53:58 2008 +0000
@@ -167,7 +167,7 @@
 	if (!(r_family && strcasecmp((const char*)r_family, family) == 0) &&
 	    !(r_fullname && strcasecmp((const char*)r_fullname, family) == 0))
 		mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_SelectedFontFamilyIsNotTheRequestedOne,
-		       (const char*)(r_family ? r_family : r_fullname), family);
+		       (const char*)(r_fullname ? r_fullname : r_family), family);
 
 	result = FcPatternGetString(rpat, FC_STYLE, 0, &r_style);
 	if (result != FcResultMatch)