summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/tool/shape-record.h8
1 files 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