diff options
-rw-r--r-- | src/widgets/graphicsview/qgraph_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/graphicsview/qgraph_p.h b/src/widgets/graphicsview/qgraph_p.h index 1314f6ab36..53701764de 100644 --- a/src/widgets/graphicsview/qgraph_p.h +++ b/src/widgets/graphicsview/qgraph_p.h @@ -56,6 +56,8 @@ #include <QtCore/QString> #include <QtCore/QDebug> +#include <functional> // for std::less + #include <float.h> QT_BEGIN_NAMESPACE @@ -213,9 +215,8 @@ public: Vertex *from = it.from(); Vertex *to = it.to(); // do not return (from,to) *and* (to,from) - if (from < to) { + if (std::less<Vertex*>()(from, to)) conns.append(qMakePair(from, to)); - } } return conns; } |