From 8d8d8fd0557c35b9ca75907eb7b01ad3acaa6cfb Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 30 Mar 2022 23:54:42 +0200 Subject: [PATCH] [FEM] fix a comparison operator Fixes a mistake I introduced with https://github.com/FreeCAD/FreeCAD/commit/54ef47276fba --- src/Mod/Fem/Gui/TaskPostBoxes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Fem/Gui/TaskPostBoxes.cpp b/src/Mod/Fem/Gui/TaskPostBoxes.cpp index 8b0c704393..7a4404c44d 100644 --- a/src/Mod/Fem/Gui/TaskPostBoxes.cpp +++ b/src/Mod/Fem/Gui/TaskPostBoxes.cpp @@ -469,7 +469,7 @@ void TaskPostClip::collectImplicitFunctions() { pipeline->Functions.getValue())->Functions.getValues(); for (std::size_t i = 0; i < funcs.size(); ++i) { items.push_back(QString::fromLatin1(funcs[i]->getNameInDocument())); - if (currentFunction = funcs[i]) + if (currentFunction == funcs[i]) currentItem = i; } ui->FunctionBox->addItems(items);