Ticket #1900: osd_error.patch

File osd_error.patch, 604 bytes (added by stuart@…, 18 years ago)
  • libs/libmythtv/osd.cpp

     
    19271927    while (text);
    19281928
    19291929    int numoptions = options.size();
     1930
     1931    if (availoptions < numoptions)
     1932    {
     1933        VERBOSE(VB_IMPORTANT, QString("Theme allows %1 options, "
     1934        "menu contains %2 options").arg(availoptions).arg(numoptions));
     1935        return;
     1936    }
     1937
    19301938    int offset = availoptions - numoptions;
    19311939    initial_selection = max(min(numoptions - 1, initial_selection), 0);