StaticText: Reset background on EnrichedString change (#9340)
This also fixes the F6 profiler background color -> now controlled by EnrichedString
This commit is contained in:
@@ -308,9 +308,10 @@ void StaticText::updateText()
|
||||
const EnrichedString &cText = ColoredText;
|
||||
BrokenText.clear();
|
||||
|
||||
if (cText.hasBackground()) {
|
||||
if (cText.hasBackground())
|
||||
setBackgroundColor(cText.getBackground());
|
||||
}
|
||||
else
|
||||
setDrawBackground(false);
|
||||
|
||||
if (!WordWrap) {
|
||||
BrokenText.push_back(cText);
|
||||
|
||||
Reference in New Issue
Block a user