Ticket #1900: osd_error.2.patch

File osd_error.2.patch, 597 bytes (added by stuart@…, 18 years ago)

Working patch

  • libs/libmythtv/osd.cpp

     
    20242024    while (text);
    20252025
    20262026    int numoptions = options.size();
     2027
     2028    if (availoptions < numoptions)
     2029    {
     2030        VERBOSE(VB_IMPORTANT, QString("Theme allows %1 options, "
     2031        "menu contains %2 options").arg(availoptions).arg(numoptions));
     2032        return;
     2033    }
     2034
    20272035    int offset = availoptions - numoptions;
    20282036    initial_selection = max(min(numoptions - 1, initial_selection), 0);
    20292037