X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=6322fb898c139e9bbabf8c7aaf348ca2adf51b1e;hp=96e86868cb3880b8e04f9033387930e2925438a8;hb=0644e5dfe448c81b25126ef5a1b246eadd79563f;hpb=51aa1cb1a7ce6313e89e74818916dbaaf72be290 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 96e86868..6322fb89 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -105,7 +105,7 @@ QTextCharFormat UiStyle::format(quint32 ftype, quint32 label) { // check if we have exactly this format readily cached already QTextCharFormat fmt = cachedFormat(key); - if(fmt.isValid()) + if(fmt.properties().count()) return fmt; fmt.merge(cachedFormat(key & 0x0000000000000000)); // basic