mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #7667: Pixmap cache and CT lead to random colors
The signature of the character in cache should take into account the change tracking baseColor (author) and mergeColor (added/deleted). If not, we will mixup different cached pixmaps.
This commit is contained in:
parent
af4e31ec28
commit
6327993867
@ -96,7 +96,9 @@ QString GuiPainter::generateStringSignature(QString const & str, FontInfo const
|
||||
sig.append(QChar(static_cast<short>(f.series())));
|
||||
sig.append(QChar(static_cast<short>(f.realShape())));
|
||||
sig.append(QChar(static_cast<short>(f.size())));
|
||||
sig.append(QChar(static_cast<short>(f.color())));
|
||||
Color const & color = f.realColor();
|
||||
sig.append(QChar(static_cast<short>(color.baseColor)));
|
||||
sig.append(QChar(static_cast<short>(color.mergeColor)));
|
||||
if (!monochrome_min_.empty()) {
|
||||
QColor const & min = monochrome_min_.top();
|
||||
QColor const & max = monochrome_max_.top();
|
||||
|
Loading…
Reference in New Issue
Block a user