Changeset 4507


Ignore:
Timestamp:
12/17/09 07:28:24 (10 years ago)
Author:
ronosman
Message:

Bug fixed : wrong image count causes crash when removing image from selection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/wxImageListCtrl.pm

    r4504 r4507  
    307307       my $y_spacing = $self->image_size + 2; 
    308308       my $ipr = floor(($self->GetClientSize->GetWidth - 0.20*$x_spacing)/$x_spacing)||1; 
    309        for( my $i = 0 ; $i < $self->imagelist->count ; $i++){ 
     309       for( my $i = 0 ; $i < $self->wx_imagelist->GetImageCount ; $i++){ 
    310310                # call the method corresponding to the display mode 
    311311            my $indx = $self->insert_items->{$self->imagelist->display_mode}->($self, $i); 
Note: See TracChangeset for help on using the changeset viewer.