From: Manuel Nickschas Date: Fri, 3 Oct 2008 21:42:13 +0000 (+0200) Subject: Clear fontMetrics cache on setFormat() X-Git-Tag: 0.3.1~199 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=118c68a6cf5f098e68a6bed1df18dd6832ca4d10 Clear fontMetrics cache on setFormat() --- 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 {