Skip to content
Snippets Groups Projects
Commit e0145b85 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: Pair sort on construct did the opposite (fixes #1701)

parent 9abf648a
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst) ...@@ -68,7 +68,7 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst)
template<class T> template<class T>
inline Foam::Pair<T>::Pair(const T& f, const T& s, const bool doSort) inline Foam::Pair<T>::Pair(const T& f, const T& s, const bool doSort)
{ {
if (doSort && f < s) if (doSort && s < f)
{ {
first() = s; first() = s;
second() = f; second() = f;
...@@ -88,7 +88,6 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst, const bool doSort) ...@@ -88,7 +88,6 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst, const bool doSort)
{} {}
template<class T> template<class T>
inline Foam::Pair<T>::Pair(Istream& is) inline Foam::Pair<T>::Pair(Istream& is)
: :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment