Author: adrian
Date: Sun Mar  7 04:07:32 2010
New Revision: 8636

URL: http://svn.slimdevices.com/jive?rev=8636&view=rev
Log:
Bug: N/A
Description: rendering null strings causes an error message - hide it

Modified:
    7.5/trunk/squeezeplay/src/squeezeplay/src/ui/jive_font.c

Modified: 7.5/trunk/squeezeplay/src/squeezeplay/src/ui/jive_font.c
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/src/ui/jive_font.c?rev=8636&r1=8635&r2=8636&view=diff
==============================================================================
--- 7.5/trunk/squeezeplay/src/squeezeplay/src/ui/jive_font.c (original)
+++ 7.5/trunk/squeezeplay/src/squeezeplay/src/ui/jive_font.c Sun Mar  7 
04:07:32 2010
@@ -238,6 +238,11 @@
 #endif //JIVE_PROFILE_BLIT
        SDL_Color clr;
        SDL_Surface *srf;
+
+       // don't call render for null strings as it produces an error which we 
want to hide
+       if (*str == '\0') {
+               return NULL;
+       }
 
        clr.r = (color >> 24) & 0xFF;
        clr.g = (color >> 16) & 0xFF;

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to