fix for mis-merge of region dialog gain patch (#2879), from colinf