X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=025c9d1dd86df827e59fc7e7268560df4680bdc7;hp=1626c01bcd1844aa81c7ae9e9ef09462c2896283;hb=a05018fce868dd4627e720816f36fb8284257e95;hpb=55049803e1f4215cedaa30935eae4ca2aa5835d2 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 1626c01b..025c9d1d 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -87,6 +87,7 @@ void UiStyle::loadStyleSheet() { qDeleteAll(_metricsCache); _metricsCache.clear(); _formatCache.clear(); + _formats.clear(); UiStyleSettings s; @@ -335,7 +336,7 @@ void UiStyle::mergeFormat(QTextCharFormat &fmt, quint32 ftype, quint64 label) { if((ftype & 0xfff00)) { // element format for(quint32 mask = 0x00100; mask <= 0x40000; mask <<= 1) { if(ftype & mask) { - mergeSubElementFormat(fmt, mask | 0xff, label); + mergeSubElementFormat(fmt, ftype & (mask | 0xff), label); } } }