Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        text.c 


Log Message:
Fix crash if font loading fails.

===================================================================
RCS file: /cvs/e/e16/e/src/text.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -3 -r1.93 -r1.94
--- text.c      4 Sep 2007 21:15:21 -0000       1.93
+++ text.c      8 Dec 2007 15:17:42 -0000       1.94
@@ -754,9 +754,8 @@
                goto fallback;
          }
 #endif
-       ts->ops = fhp->ops;
-       ts->ops->Load(ts, name);
-       goto done;
+       if (fhp->ops->Load(ts, name) == 0)
+          goto done;
      }
  fallback:
 #if FONT_TYPE_XFS



-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to