From 909e11f49f90fd990493d9617c4ff71afd670356 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 12 May 2011 08:38:24 +0000 Subject: [PATCH] Evas font-engine: Fix usage of font cache (= -> ==). SVN revision: 59344 --- legacy/evas/src/lib/canvas/evas_font_dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_font_dir.c b/legacy/evas/src/lib/canvas/evas_font_dir.c index 4d947239c8..79b9b59e77 100644 --- a/legacy/evas/src/lib/canvas/evas_font_dir.c +++ b/legacy/evas/src/lib/canvas/evas_font_dir.c @@ -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);