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
 
824
 
825
             // decr. to account for skipping title row 
825
             // decr. to account for skipping title row 
826
             // (see the complementary incrementn in _ctl_cb())
826
             // (see the complementary incrementn in _ctl_cb())
827
-            if( idx > 0 )
827
+            if( idx > 0 && cp->u.mlst.mbtn!=NULL)
828
               --idx;
828
               --idx;
829
 
829
 
830
             if( cp->u.mlst.mbtn==NULL)
830
             if( cp->u.mlst.mbtn==NULL)

Loading…
Cancel
Save