fate-extra / imagestack

Automatically exported from code.google.com/p/imagestack
Other
0 stars 0 forks source link

Bug in CreateTmp:apply - the header structure is inconsistent #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Line 533 in File.cpp lists:

int header[] = {width, height, frames, channels, 0};

but should be

int header[] = {frames, width, height, channels, 0};

to be consistent with the loading function in fileTMP.

Whilst I think ImageStack is great, in this case I feel that the header 
structure should be declared in one place rather than in lots of different 
function which would prevent this sort of bug in the event that the header is 
changed, etc..

Anyway, just a slight bug that should be trivial to fix

Thanks for the great work

Original issue reported on code.google.com by ndfcampb...@gmail.com on 17 Sep 2012 at 8:46