Very long loading time the second time with TIFF product

Mantis Issue 664, reported by jmichel, assigned to msavinaud, created: 2013-03-07

The loading time is very long the second opening with a TIFF product. It seems it computes the histogram on the full image.

If I clean the dataset directory, loading is very fast again, and then slow next time.

1362655939 - mickaelfix with http://hg.orfeo-toolbox.org/Monteverdi2/rev/aec559ce4c79 I following the advice of Stephane for this patch. However, the fact that all our arch depend of this widget width and height is for me a problem which will grow in the future.