Ticket #9236: fix-9236.patch

File fix-9236.patch, 852 bytes (added by beirdo, 9 years ago)
  • mythtv/libs/libmythui/mythuiimage.cpp

    From 393b41879022810832f07b4ee12590f07ad4accf Mon Sep 17 00:00:00 2001
    From: Gavin Hurlbut <ghurlbut@mythtv.org>
    Date: Wed, 17 Nov 2010 00:28:54 +0000
    Subject: Potential fix for #9236
    
    ---
    diff --git a/mythtv/libs/libmythui/mythuiimage.cpp b/mythtv/libs/libmythui/mythuiimage.cpp
    index 8983421..aea84e6 100644
    a b bool MythUIImage::Load(bool allowLoadInBackground, bool forceStat) 
    568568    QString imagelabel;
    569569
    570570    int j = 0;
    571     for (int i = m_LowNum; i <= m_HighNum && !m_animatedImage; i++)
     571    for (int i = m_LowNum; (i == m_LowNum  && !m_animatedImage) ||
     572                           (i <= m_HighNum &&  m_animatedImage); i++)
    572573    {
    573574        if (!m_animatedImage && m_HighNum >= 1)
    574575            filename = bFilename.arg(i);