OpenCDE/opencde — Issue #14: dtpanel core dump in sparse menus.ini
Author: MrStevenCarr
Created: 2012-01-23 01:00:43+00:00
State: open

dtpanel core dumps when menus.ini only contains a section.

In void PanelWindow::onFocus(void* caller)

Motif::Color color(menuButtons.at(0)->getHighlightColor());

Should be

Motif::Color color(( menuButtons.size()>0 ? menuButtons.at(0)->getHighlightColor() : getBackground()));