Evas font-engine: Fallback to script_fi if we didn't find another one.
authorTom Hacohen <tom@stosb.com>
Mon, 30 May 2011 08:31:29 +0000 (08:31 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 30 May 2011 08:31:29 +0000 (08:31 +0000)
SVN revision: 59803

legacy/evas/src/lib/engines/common/evas_font_query.c

index b3bb783..d6760a7 100644 (file)
@@ -137,7 +137,10 @@ evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi
           }
      }
 
-   *cur_fi = fi;
+   if (fi)
+      *cur_fi = fi;
+   else
+      *cur_fi = *script_fi;
 
    return itr - text;
 }