Fix coverity issues
This commit is contained in:
@@ -545,7 +545,7 @@ bool MyDiagonalCurve::handleEvents (GdkEvent* event)
|
||||
double minDistanceY = double(MIN_DISTANCE) / double(graphH - 1);
|
||||
|
||||
switch (event->type) {
|
||||
case Gdk::BUTTON_PRESS:
|
||||
case GDK_BUTTON_PRESS:
|
||||
snapToElmt = -100;
|
||||
|
||||
if (curve.type != DCT_Parametric) {
|
||||
@@ -694,7 +694,7 @@ bool MyDiagonalCurve::handleEvents (GdkEvent* event)
|
||||
|
||||
break;
|
||||
|
||||
case Gdk::BUTTON_RELEASE:
|
||||
case GDK_BUTTON_RELEASE:
|
||||
snapToElmt = -100;
|
||||
|
||||
if (curve.type != DCT_Parametric && edited_point == -1) {
|
||||
@@ -755,7 +755,7 @@ bool MyDiagonalCurve::handleEvents (GdkEvent* event)
|
||||
|
||||
break;
|
||||
|
||||
case Gdk::LEAVE_NOTIFY:
|
||||
case GDK_LEAVE_NOTIFY:
|
||||
|
||||
// Pointer can LEAVE even when dragging the point, so we don't modify the cursor in this case
|
||||
// The cursor will have to LEAVE another time after the drag...
|
||||
@@ -772,7 +772,7 @@ bool MyDiagonalCurve::handleEvents (GdkEvent* event)
|
||||
retval = true;
|
||||
break;
|
||||
|
||||
case Gdk::MOTION_NOTIFY:
|
||||
case GDK_MOTION_NOTIFY:
|
||||
snapToElmt = -100;
|
||||
|
||||
if (curve.type == DCT_Linear || curve.type == DCT_Spline || curve.type == DCT_NURBS) {
|
||||
|
Reference in New Issue
Block a user