From 4fd963d2c40d352951b64e3ec2f4b188c6f50917 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 28 Dec 2016 07:46:20 +0100 Subject: logic/tracker: fix typo out-of-bound access --- logic/tracker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'logic/tracker.cpp') diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 332828a9..f5b1bdc4 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -43,6 +43,7 @@ Tracker::Tracker(Mappings& m, SelectedLibraries& libs, TrackLogger& logger) : Tracker::~Tracker() { + qDebug() << "dtor"; set(f_should_quit, true); wait(); } @@ -111,7 +112,7 @@ static bool is_nan(const dmat& r) { for (int i = 0; i < u; i++) for (int j = 0; j < w; j++) - if (nanp(r(u, w))) + if (nanp(r(i, j))) return true; return false; -- cgit v1.2.3