kcApp.cpp: In _setMlistValue() the item index is now decremented for Menu Buttons but not List widgets.

This commit is contained in:
kevin 2013-05-23 11:14:46 -07:00
parent 51844a1618
commit 02b7bed788

View File

@ -824,7 +824,7 @@ void kcApp::_setMlistValue( ctl_t* cp, unsigned instVarId, const cmDspValue_t* v
// decr. to account for skipping title row // decr. to account for skipping title row
// (see the complementary incrementn in _ctl_cb()) // (see the complementary incrementn in _ctl_cb())
if( idx > 0 ) if( idx > 0 && cp->u.mlst.mbtn!=NULL)
--idx; --idx;
if( cp->u.mlst.mbtn==NULL) if( cp->u.mlst.mbtn==NULL)