#Bug: stack overflow during show Tooltips 0.7.5 (with fix)
Posted: Sat Nov 10, 2012 11:35
stack overflow inside CEGUI occur when mouse enters control that has tooltipText when hidden tooltip positioned over control under mouse.
Sorry for horrible english, I try show schematic:
could be fixed changing source CEGUITooltip.cpp :
Sorry for horrible english, I try show schematic:
could be fixed changing source CEGUITooltip.cpp :
Code: Select all
void Tooltip::setTargetWindow(Window* wnd)
{
if (!wnd)
{
d_target = wnd;
}
else if (wnd != this)
{
if (d_target != wnd)
{
d_target = wnd; //add this
hide(); //add this
System::getSingleton().getGUISheet()->addChildWindow(this);
// d_target = wnd; comment this
}
// set text to that of the tooltip text of the target
setText(wnd->getTooltipText());
// set size and potition of the tooltip window.
sizeSelf();
positionSelf();
if (d_target != NULL) show(); //add this
}
resetTimer();
}