From f8014afbb6b97883e282e37990e9b459db36440e Mon Sep 17 00:00:00 2001 From: Mickael Bosch Date: Tue, 9 Aug 2016 20:20:44 +0200 Subject: [PATCH] removed duplicate entries in the tangent functions list. This made the TangentWidget::newFuncChoosen(int funcNum) function crash. --- Widgets/tangentwidget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Widgets/tangentwidget.cpp b/Widgets/tangentwidget.cpp index b9c2c55..27ba987 100644 --- a/Widgets/tangentwidget.cpp +++ b/Widgets/tangentwidget.cpp @@ -90,8 +90,6 @@ void TangentWidget::addWidgets() functionsComboBox->setFixedSize(40,25); connect(functionsComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(newFuncChoosen(int))); - for(int i = 0 ; i < funcNames.size(); i++){functionsComboBox->addItem(funcNames[i]);} - QLabel *label2 = new QLabel(tr("at: x =")); tangentPos = new QLineEdit;