summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98d411f)
raw | patch | inline | side by side (parent: 98d411f)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Thu, 28 Jan 2010 21:27:38 +0000 (22:27 +0100) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Thu, 28 Jan 2010 21:27:38 +0000 (22:27 +0100) |
src/ui/tool/shape-record.h | patch | blob | history |
index fdb49ac36a66024ecb17a717ba2bcd95cb16d3e0..edfad1401796bf97f526cb17a0668107feb4f417 100644 (file)
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