From: Krzysztof KosiƄski Date: Thu, 28 Jan 2010 21:27:38 +0000 (+0100) Subject: Fix the "edit next LPE parameter" button. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45fafa5caaaeec7c08081c6c6fa595c30d361c7b;p=inkscape.git Fix the "edit next LPE parameter" button. --- 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