From 665ee684b3584e48c6cff36aff005218a02f992b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Thu, 1 Jun 2017 17:20:04 +0200 Subject: [PATCH] Fix less operator of Completion Data --- ApplicationCode/ReservoirDataModel/RigCompletionData.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ReservoirDataModel/RigCompletionData.cpp b/ApplicationCode/ReservoirDataModel/RigCompletionData.cpp index 066f15504a..6c6e758d06 100644 --- a/ApplicationCode/ReservoirDataModel/RigCompletionData.cpp +++ b/ApplicationCode/ReservoirDataModel/RigCompletionData.cpp @@ -87,10 +87,11 @@ RigCompletionData RigCompletionData::combine(const RigCompletionData& first, con //================================================================================================== bool RigCompletionData::operator<(const RigCompletionData& other) const { - if (m_wellName < other.m_wellName) - { - return true; + if (m_wellName != other.m_wellName) + { + return (m_wellName < other.m_wellName); } + return m_cellIndex < other.m_cellIndex; }