diff --git a/imageviewer-qt4.cpp b/imageviewer-qt4.cpp index 1937913..347f6eb 100644 --- a/imageviewer-qt4.cpp +++ b/imageviewer-qt4.cpp @@ -377,13 +377,15 @@ void ImageViewer::partialLinearHistogrammAdaption() { // Split [0,255] into n parts (slider) int number_parts = partial_adaption_pieces_slider->value(); int* parts = (int*) malloc(number_parts*sizeof(int)); - for(int i=0; i<=number_parts; i++) { + for(int i=0; i