From 02b7bed78811de7e7af21b3138cf7817f0f86991 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 23 May 2013 11:14:46 -0700 Subject: [PATCH] kcApp.cpp: In _setMlistValue() the item index is now decremented for Menu Buttons but not List widgets. --- src/kc/kcApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kc/kcApp.cpp b/src/kc/kcApp.cpp index accef31..fe6f804 100644 --- a/src/kc/kcApp.cpp +++ b/src/kc/kcApp.cpp @@ -824,7 +824,7 @@ void kcApp::_setMlistValue( ctl_t* cp, unsigned instVarId, const cmDspValue_t* v // decr. to account for skipping title row // (see the complementary incrementn in _ctl_cb()) - if( idx > 0 ) + if( idx > 0 && cp->u.mlst.mbtn!=NULL) --idx; if( cp->u.mlst.mbtn==NULL)