From 4e06729da79d2b7982f4ba4bc5db945d144e98cd Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 28 Jan 2010 22:27:38 +0100 Subject: Fix the "edit next LPE parameter" button. (bzr r9029) --- src/ui/tool/shape-record.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ui') 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 -- cgit v1.2.3