From 999c27674c318eb3acafd687eb9602aba149a59b Mon Sep 17 00:00:00 2001 From: pixhawk Date: Wed, 16 Mar 2011 10:39:12 +0100 Subject: [PATCH] fixed a bug where z-value of a waypoint was unintentionally changed to old y-value --- src/Waypoint.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Waypoint.cc b/src/Waypoint.cc index 0d1f876ee..de5c262f4 100644 --- a/src/Waypoint.cc +++ b/src/Waypoint.cc @@ -283,9 +283,9 @@ void Waypoint::setParam5(double param5) void Waypoint::setParam6(double param6) { - if (this->z != param6) + if (this->y != param6) { - this->z = param6; + this->y = param6; emit changed(this); } } -- 2.22.0