fix paintEvent for Curveanalyzer