#2366 Merged trunk to fix compile errors caused by changes of the DefineArithmeticProgressionDialog from r12293.