X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=d97302a5e4d9cf513115fbc4f62de1e8a8a8a3ac;hp=b2774388acab94528a056079858df421de28556a;hb=7ea9c498bfb975a95c11d6ddc28835840cf3353d;hpb=94f1513df11401c44e79278c838a0708bcd83823 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index b2774388..d97302a5 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -145,6 +145,7 @@ void UiStyle::setFormat(FormatType ftype, QTextCharFormat fmt, Settings::Mode mo } // TODO: invalidate only affected cached formats... if that's possible with less overhead than just rebuilding them _cachedFormats.clear(); + _cachedFontMetrics.clear(); } QTextCharFormat UiStyle::format(FormatType ftype, Settings::Mode mode) const {