From 18f0c6cb3192dd996d6b5dd0e61dc6294fd92b45 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 27 Apr 2013 13:17:00 +0200 Subject: Fix typo, not reading past the end of array as result --- facetracknoir/tracker.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index 7320abaf..f8bc378e 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -311,8 +311,6 @@ void Tracker::loadSettings() { qDebug() << "loadSettings says: iniFile = " << currentFile; - iniFile.beginGroup ( "Tracking" ); - iniFile.endGroup (); iniFile.beginGroup ( "KB_Shortcuts" ); // Reverse Axis useAxisReverse = iniFile.value ( "Enable_ReverseAxis", 0 ).toBool(); @@ -323,10 +321,10 @@ void Tracker::loadSettings() { static const char* names[] = { "Inhibit_X", "Inhibit_Y", - "Inhibit_Z" + "Inhibit_Z", "Inhibit_Yaw", "Inhibit_Pitch", - "Inhibit_Roll", + "Inhibit_Roll" }; for (int i = 0; i < 6; i++) -- cgit v1.2.3