On Fri, Jul 19, 2013 at 8:34 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote: > Am 19/07/2013 04:27, schrieb stpere@xxxxxxxxx: > >> color.red = fLowFreqColor.red >> - + (fHighFreqColor.red - >> fLowFreqColor.red) >> - / (fNSteps - 1) * step; >> + + (fHighFreqColor.red - fLowFreqColor.red) * step / >> (fNSteps - 1); > > > Could you reproduce the original problem? At least I don't understand how > this can change anything, as the division does not change. I guess if step was 0, this fixes the divide-by-zero issue?