fixed: crash in the fadelabel control if the font couldn't be found - thanks to Voyag...
authorjmarshallnz <jmarshallnz@svn>
Mon, 13 Dec 2010 19:43:24 +0000 (19:43 +0000)
committerjmarshallnz <jmarshallnz@svn>
Mon, 13 Dec 2010 19:43:24 +0000 (19:43 +0000)
(cherry picked from commit f1eae555b9972059b045e5ada62fd4d5f18a4fbf)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35630 568bbfeb-2a22-0410-94d2-cc84cf5bfa90

guilib/GUIFadeLabelControl.cpp

index 2007e20..3e1a779 100644 (file)
@@ -90,7 +90,7 @@ void CGUIFadeLabelControl::UpdateColors()
 
 void CGUIFadeLabelControl::Render()
 {
-  if (m_infoLabels.size() == 0)
+  if (m_infoLabels.size() == 0 || !m_label.font)
   { // nothing to render
     CGUIControl::Render();
     return ;