[Fontconfig] fontconfig: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 27 05:30:05 UTC 2020


 src/fcfreetype.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d3bfbea7dc53aa7fa52aa9616235a23d4507da1b
Author: Akira TAGOH <akira at tagoh.org>
Date:   Thu Feb 27 14:21:45 2020 +0900

    Set exact boolean value to color property
    
    This is a regression since 48e9e5f4

diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 9c2ae83..cd8fa43 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1294,7 +1294,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face  face,
 	if (!FcPatternObjectAddBool (pat, FC_OUTLINE_OBJECT, has_outline))
 	    goto bail1;
 
-	has_color = FT_HAS_COLOR (face);
+	has_color = !!FT_HAS_COLOR (face);
 	if (!FcPatternObjectAddBool (pat, FC_COLOR_OBJECT, has_color))
 	    goto bail1;
 


More information about the Fontconfig mailing list