From 44d80672a024aca19b984c61ea6cafbf4e465544 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Sat, 20 Apr 2019 19:47:57 +0200 Subject: [PATCH] clang : Compare instead of invalid assignment --- .../FractureCommands/RicCreateMultipleFracturesOptionItemUi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesOptionItemUi.cpp b/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesOptionItemUi.cpp index 25a90abcfa..166619f12c 100644 --- a/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesOptionItemUi.cpp +++ b/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesOptionItemUi.cpp @@ -109,7 +109,7 @@ void RicCreateMultipleFracturesOptionItemUi::fieldChangedByUi(const caf::PdmFiel { if (m_topKOneBased > m_baseKOneBased) m_baseKOneBased = m_topKOneBased; } - else if (changedField = &m_baseKOneBased) + else if (changedField == &m_baseKOneBased) { if (m_baseKOneBased < m_topKOneBased) m_topKOneBased = m_baseKOneBased; }