Page 1 of 1

#Bug: stack overflow during show Tooltips 0.7.5 (with fix)

Posted: Sat Nov 10, 2012 11:35
by rjdgtn_
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:
Image
Image
Image
Image

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();
}

Re: #Bug: stack overflow during show Tooltips 0.7.5 (with fi

Posted: Mon Dec 03, 2012 03:25
by Jabberwocky
Cool, that looks like the same problem reported here: viewtopic.php?p=24506#p24506
and here: http://www.cegui.org.uk/mantis/view.php?id=394