Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-19 00:57:29 +02:00
parent 8aff354df9
commit a9f769c5d7
3 changed files with 6 additions and 6 deletions

View File

@@ -1111,8 +1111,10 @@ bool MyDiagonalCurve::pipetteButton1Pressed(EditDataProvider *provider, int modi
curve.y.insert (ity, 0);
// the graph is refreshed only if a new point is created (snapped to a pixel)
curve.x.at(lit_point) = clampedX;
curve.y.at(lit_point) = clampedY;
if (lit_point >= 0) {
curve.x.at(lit_point) = clampedX;
curve.y.at(lit_point) = clampedY;
}
if (lit_point > -1 && grab_point == -1 && coordinateAdjuster->is_visible()) {
std::vector<double> position;