X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbclistbox.C;h=320e98bc4d701269e2fa636f02556a2bc4c419c6;hp=a6946530ffb1638f2cfe0690589d7653dcd44462;hb=7cec2a82e63b4cbd8ce58fd98bd66eb4e7f2e826;hpb=bd40a11178ed791d8c163877d3c28e5045148c62 diff --git a/cinelerra-5.1/guicast/bclistbox.C b/cinelerra-5.1/guicast/bclistbox.C index a6946530..320e98bc 100644 --- a/cinelerra-5.1/guicast/bclistbox.C +++ b/cinelerra-5.1/guicast/bclistbox.C @@ -2076,6 +2076,7 @@ int BC_ListBox::get_cursor_item(ArrayList *data, int cursor_x, // Icons are not treed switch( display_format ) { case LISTBOX_ICONS: + case LISTBOX_ICONS_PACKED: case LISTBOX_ICON_LIST: { for( int j=data[master_column].total; --j>=0; ) { int icon_x, icon_y, icon_w, icon_h; @@ -2092,8 +2093,7 @@ int BC_ListBox::get_cursor_item(ArrayList *data, int cursor_x, return j; } } - if( display_format == LISTBOX_ICONS ) return -1; - } // fall through + return -1; } case LISTBOX_TEXT: if( !gui ) break; // Text is treed