X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=cbae7e68c47f8e78ecc8e91ea91fe0643c6c217e;hp=879fc3504810704d1074c7c83cf0745e7389eb79;hb=670e7d401aae1196c0a24c59f96d267a8eb9d1bb;hpb=5eabeaac29e32c327dc067147f3fcea44e5164f8 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 879fc350..cbae7e68 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -475,7 +475,7 @@ QTextCharFormat UiStyle::format(const Format &format, MessageLabel label) const // Merge all formats except mIRC and extended colors mergeFormat(charFormat, format, label & 0xffff0000); // keep nickhash in label - for (quint32 mask = 0x00000001; mask <= static_cast(MessageLabel::Selected); mask <<= 1) { + for (quint32 mask = 0x00000001; mask <= static_cast(MessageLabel::Last); mask <<= 1) { if (static_cast(label) & mask) { mergeFormat(charFormat, format, label & (mask | 0xffff0000)); } @@ -485,7 +485,7 @@ QTextCharFormat UiStyle::format(const Format &format, MessageLabel label) const // unless the AllowForegroundOverride or AllowBackgroundOverride properties are set (via stylesheet). if (_allowMircColors) { mergeColors(charFormat, format, MessageLabel::None); - for (quint32 mask = 0x00000001; mask <= static_cast(MessageLabel::Selected); mask <<= 1) { + for (quint32 mask = 0x00000001; mask <= static_cast(MessageLabel::Last); mask <<= 1) { if (static_cast(label) & mask) { mergeColors(charFormat, format, label & mask); }