Evas font-engine: Fix usage of font cache (= -> ==).
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 May 2011 08:38:24 +0000 (08:38 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 May 2011 08:38:24 +0000 (08:38 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59344 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_font_dir.c

index 4d94723..79b9b59 100644 (file)
@@ -329,7 +329,7 @@ evas_font_load(Evas *evas, const char *name, const char *source, int size)
             if (((!source) && (!fd->source)) ||
                 ((source) && (fd->source) && (!strcmp(source, fd->source))))
               {
-                 if ((size == fd->size) && (wanted_rend = fd->wanted_rend))
+                 if ((size == fd->size) && (wanted_rend == fd->wanted_rend))
                    {
                       fonts_cache = eina_list_promote_list(fonts_cache, l);
                       fd->ref++;
@@ -354,7 +354,7 @@ evas_font_load(Evas *evas, const char *name, const char *source, int size)
             if (((!source) && (!fd->source)) ||
                 ((source) && (fd->source) && (!strcmp(source, fd->source))))
               {
-                 if ((size == fd->size) && (wanted_rend = fd->wanted_rend))
+                 if ((size == fd->size) && (wanted_rend == fd->wanted_rend))
                    {
                       fonts_zero = eina_list_remove_list(fonts_zero, l);
                       fonts_cache = eina_list_prepend(fonts_cache, fd);