Browse Source

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

master
kevin 11 years ago
parent
commit
02b7bed788
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/kc/kcApp.cpp

+ 1
- 1
src/kc/kcApp.cpp View File

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

Loading…
Cancel
Save