From 45fafa5caaaeec7c08081c6c6fa595c30d361c7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Thu, 28 Jan 2010 22:27:38 +0100 Subject: [PATCH] Fix the "edit next LPE parameter" button. --- src/ui/tool/shape-record.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/tool/shape-record.h b/src/ui/tool/shape-record.h index fdb49ac36..edfad1401 100644 --- a/src/ui/tool/shape-record.h +++ b/src/ui/tool/shape-record.h @@ -36,8 +36,12 @@ struct ShapeRecord : ShapeRole role; Glib::ustring lpe_key; // name of LPE shape param being edited - inline bool operator==(ShapeRecord const &o) const { return item == o.item; } - inline bool operator<(ShapeRecord const &o) const { return item < o.item; } + inline bool operator==(ShapeRecord const &o) const { + return item == o.item && lpe_key == o.lpe_key; + } + inline bool operator<(ShapeRecord const &o) const { + return item == o.item ? (lpe_key < o.lpe_key) : (item < o.item); + } }; } // namespace UI -- 2.30.2