Tooltips: ensure that 'use_markup' is always passed by add_tooltip()
Not all parts of add_tooltip() did so previously, resulting in pango markup of tooltips not always working. For example, in some cases it only worked for tooltips on the first mouse-over, but not on subsequent ones. That is fixed now.
This commit is contained in:
parent
8607866d12
commit
4bfd2240e2
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ void add_tooltip(const SDL_Rect& rect, const std::string& message, const std::st
|
|||
{
|
||||
for(std::vector<tooltip>::iterator i = tips.begin(); i != tips.end(); ++i) {
|
||||
if(rects_overlap(i->rect,rect)) {
|
||||
*i = tooltip(rect, message, action);
|
||||
*i = tooltip(rect, message, action, use_markup);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue