From 87840f44b506021a22c14794db6a4b7024507aac Mon Sep 17 00:00:00 2001 From: Marcin Szalowicz Date: Fri, 29 Jan 2016 11:37:35 +0100 Subject: [PATCH] close [MW-1197] WORKBENCH DOESN'T DELETE ALL SELECTED ROWS WHEN DELETING FROM RESULT GRID Backend: tree_model: fix operator < so it fulfill strict weak ordering this causes problem on OSX with libc++ review by Mike --- backend/wbpublic/grt/tree_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/wbpublic/grt/tree_model.cpp b/backend/wbpublic/grt/tree_model.cpp index ee0efa6f2..879fc3a80 100644 --- a/backend/wbpublic/grt/tree_model.cpp +++ b/backend/wbpublic/grt/tree_model.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -127,7 +127,7 @@ bool NodeId::operator < (const NodeId &r) const // less than @r becomes false, therefore this node is greater than @r. for (size_t i = 0; i < index->size(); ++i) { - if ((*index)[i] > (*r.index)[i]) + if ((*index)[i] >= (*r.index)[i]) { ret = false; break;