fix for scrolling through dataset with arbitrary orientation. int * uint is automatically cast to uint, which resulted in uint overflow when scrolling.
Merge branch 'segmentation'