Changeset 1710 for trunk

Show
Ignore:
Timestamp:
09/15/09 16:32:52 (3 years ago)
Author:
andreas
Message:

another fix in the Gallery creation of ImageList?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/base/lib/image_list.cc

    r1708 r1710  
    3838        columns=static_cast<int>(ceil(sqrt(static_cast<double>(size())))); 
    3939    } 
    40     unsigned int rows=size()/(columns+1)+1; 
     40    unsigned int rows=(size()-1)/columns+1; 
    4141    Size s=get_max_size_(); 
    4242    DataType datatype=get_data_type_();