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

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

rjdgtn_
Just popping in
Just popping in
Posts: 1
Joined: Sat Nov 10, 2012 10:45

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

Postby rjdgtn_ » 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:
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();
}

User avatar
Jabberwocky
Quite a regular
Quite a regular
Posts: 86
Joined: Wed Oct 31, 2007 18:16
Location: Canada
Contact:

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

Postby Jabberwocky » Mon Dec 03, 2012 03:25

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
The Salvation Prophecy
Space Combat. Planet Exploration. Strategic Domination.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 15 guests