[BUG] ComboBox Crash

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

earthsruler
Quite a regular
Quite a regular
Posts: 74
Joined: Mon Apr 28, 2008 23:21
Location: Australia

[BUG] ComboBox Crash

Postby earthsruler » Wed Nov 26, 2008 04:39

Hey all.

Our application can close the active window with Escape.

If I have an open list box and hover over an item that is not the one that was selected before hand, and then hit escape it crashes.

the problem code is this:

Code: Select all

void ComboDropList::onCaptureLost(WindowEventArgs& e)
{
   Listbox::onCaptureLost(e);
   d_armed = false;
   hide();
   e.internalHandled = true;

    // ensure 'sticky' selection remains.
    if ((d_lastClickSelected) && !d_lastClickSelected->isSelected())
    {
        clearAllSelections();
        setItemSelectState(d_lastClickSelected, true);
    }
}


clearAllSelections() sets d_lastClickSelected to 0, then when setItemSelectState() is called it throws an exception.

ER.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Nov 26, 2008 10:02

Hi,

Thanks for the bug :) I'm glad you found it this week and not next, hehe. I'll fix it immediately.

CE.

earthsruler
Quite a regular
Quite a regular
Posts: 74
Joined: Mon Apr 28, 2008 23:21
Location: Australia

Postby earthsruler » Wed Nov 26, 2008 23:45

:shock: whats happening next week?

And thanks for the fix ill test it out later today (if i get time to update and rebuild our dependencies).

ER.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Thu Nov 27, 2008 09:40

earthsruler wrote::shock: whats happening next week?

All being well, a 0.6.2 release.

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 5 guests