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:
mattsc 2013-11-18 18:03:01 -08:00
parent 8607866d12
commit 4bfd2240e2

View file

@ -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;
}
}