Re #8568. Fixing a gcc warning
Merge branch 'bugfix/8568_detector_sum_in_dspacing' into develop