summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/widgets/tracewidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-08 15:44:54 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-08 15:44:54 -0600
commitde23e8f184b9fefb3880daf4dafb77dfba19645a (patch)
tree4e3b640b1eeed527be5ad5410db3ed0d466ed1a1 /clients/tde/src/widgets/tracewidget.cpp
parent63b68e2dfb5c987f474e5a58f7ff3e299ec7cf01 (diff)
downloadulab-de23e8f184b9fefb3880daf4dafb77dfba19645a.tar.gz
ulab-de23e8f184b9fefb3880daf4dafb77dfba19645a.zip
Fix a number of out of range warnings
Diffstat (limited to 'clients/tde/src/widgets/tracewidget.cpp')
-rw-r--r--clients/tde/src/widgets/tracewidget.cpp27
1 files changed, 23 insertions, 4 deletions
diff --git a/clients/tde/src/widgets/tracewidget.cpp b/clients/tde/src/widgets/tracewidget.cpp
index c0527c4..8de3d52 100644
--- a/clients/tde/src/widgets/tracewidget.cpp
+++ b/clients/tde/src/widgets/tracewidget.cpp
@@ -1,5 +1,24 @@
-//Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>, (C) 2012-2014
-//Copyright: See COPYING file that comes with this distribution
+/*
+ * Analog and Digital Trace Viewing Widget
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * (c) 2012-2014 Timothy Pearson
+ * Raptor Engineering
+ * http://www.raptorengineeringinc.com
+ */
#include "tracewidget.h"
@@ -2205,7 +2224,7 @@ void TraceWidget::setZoomCursorBox(const TQRectF rect) {
else {
if (k<2) {
horiz[k] = m_cursorArray[i];
- horizIndex[j] = i;
+ horizIndex[k] = i;
k++;
}
}
@@ -2576,4 +2595,4 @@ void TraceScrollWidget::setVScrollBarMode(TQScrollView::ScrollBarMode sm) {
TraceWidget* TraceScrollWidget::traceWidget() {
return m_traceScrollView->m_traceWidget;
-} \ No newline at end of file
+}