Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 61352
Collapse All | Expand All

(-)kdenetwork-3.3.0/kopete/protocols/oscar/oscarsocket/rtf.cc (-1 / +1 lines)
Lines 1790-1796 Link Here
1790
        case TAG_FONT_COLOR:
1790
        case TAG_FONT_COLOR:
1791
            {
1791
            {
1792
               // RTF colors are 1-based; colors[] is a 0-based array.
1792
               // RTF colors are 1-based; colors[] is a 0-based array.
1793
               if (t.param > colors.size())
1793
               if (t.param > colors.size() || t.param == 0)
1794
                   break;
1794
                   break;
1795
               QColor &c = colors[t.param-1];
1795
               QColor &c = colors[t.param-1];
1796
               PrintUnquoted("<span style=\"color:#%02X%02X%02X\">", c.red(), c.green(), c.blue());
1796
               PrintUnquoted("<span style=\"color:#%02X%02X%02X\">", c.red(), c.green(), c.blue());

Return to bug 61352