From fd89d52af5ef353e787cdae621f6474c6251b908 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 2 Jun 2012 14:53:26 +0000 Subject: [PATCH] Fix operator< so that strict weak ordering is maintained, so that key lookups work. git-svn-id: svn://localhost/ardour2/branches/3.0@12542 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/midi++2/midi++/midnam_patch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h index 01b8837f2d..11bdb79f8b 100644 --- a/libs/midi++2/midi++/midnam_patch.h +++ b/libs/midi++2/midi++/midnam_patch.h @@ -74,7 +74,7 @@ public: return true; } else if (msb == id.msb && lsb < id.lsb) { return true; - } else if (lsb == id.lsb && program_number < id.program_number) { + } else if (msb == id.msb && lsb == id.lsb && program_number < id.program_number) { return true; }