Removed unnecessary calls to waveform repaint.