Skip to content

Commit

Permalink
Fix item tooltip background color not working
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu authored and sfan5 committed Dec 28, 2020
1 parent 55dba1b commit 09d7fbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/guiFormSpecMenu.cpp
Expand Up @@ -3718,7 +3718,8 @@ void GUIFormSpecMenu::showTooltip(const std::wstring &text,
{
EnrichedString ntext(text);
ntext.setDefaultColor(color);
ntext.setBackground(bgcolor);
if (!ntext.hasBackground())
ntext.setBackground(bgcolor);

setStaticText(m_tooltip_element, ntext);

Expand Down

0 comments on commit 09d7fbd

Please sign in to comment.