X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbclistbox.C;h=16a477bbe309d0de365f9029675516f61a3f2487;hp=d983c7ac8cc22cd3526b2a875e3a06ed47f30296;hb=a95193c3fd88733d184f2d460eca1fe6ddf8af28;hpb=09ccfde5a1fd65069f69b37490462b7ccf38a336 diff --git a/cinelerra-5.1/guicast/bclistbox.C b/cinelerra-5.1/guicast/bclistbox.C index d983c7ac..16a477bb 100644 --- a/cinelerra-5.1/guicast/bclistbox.C +++ b/cinelerra-5.1/guicast/bclistbox.C @@ -656,8 +656,8 @@ void BC_ListBox::calculate_item_coords_recursive( if( temp_display_format == LISTBOX_ICON_LIST ) { for( int i=0; iicon ) { - if( data[0].get(i)->icon->get_h() > row_height ) - row_height = data[0].get(i)->icon->get_h(); + int icon_h = data[0].get(i)->icon->get_h() + 2*ICON_MARGIN; + if( row_height < icon_h ) row_height = icon_h; } } } @@ -1173,10 +1173,10 @@ int BC_ListBox::get_icon_mask(BC_ListBoxItem *item, case LISTBOX_ICONS: case LISTBOX_ICONS_PACKED: case LISTBOX_ICON_LIST: { - x = get_item_x(item); - y = get_item_y(item); - w = get_icon_w(item) + ICON_MARGIN * 2; - h = get_icon_h(item) + ICON_MARGIN * 2; + x = get_item_x(item) + ICON_MARGIN; + y = get_item_y(item) + ICON_MARGIN; + w = get_icon_w(item) + ICON_MARGIN; + h = get_icon_h(item) + ICON_MARGIN; break; } case LISTBOX_TEXT: default: {