summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-01-28 21:27:38 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-01-28 21:27:38 +0000
commit4e06729da79d2b7982f4ba4bc5db945d144e98cd (patch)
treee49ef65867a66bc41841b26669389a04713447ba /src
parentFix for rectangle RadiusY and RadiusX in XAML export. (diff)
downloadinkscape-4e06729da79d2b7982f4ba4bc5db945d144e98cd.tar.gz
inkscape-4e06729da79d2b7982f4ba4bc5db945d144e98cd.zip
Fix the "edit next LPE parameter" button.
(bzr r9029)
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