diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2009-12-23 19:51:48 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2009-12-23 19:51:48 +0000 |
| commit | de6736751124f92b2f88a7ac146434edbfad824c (patch) | |
| tree | b56dc6352c957bf5d18de67e115b24eb2f2895d4 /src/ui | |
| parent | Fix the "show temporary outlines for selected paths" preference. (diff) | |
| download | inkscape-de6736751124f92b2f88a7ac146434edbfad824c.tar.gz inkscape-de6736751124f92b2f88a7ac146434edbfad824c.zip | |
Comment cleanup
(bzr r8846.2.5)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 9 | ||||
| -rw-r--r-- | src/ui/tool/shape-record.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 0ad509a9b..f247e5537 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1042,9 +1042,9 @@ void PathManipulator::_setGeometry() if (empty()) return; if (!_lpe_key.empty()) { - // LPE brain damage follows - copied from nodepath.cpp + // copied from nodepath.cpp // NOTE: if we are editing an LPE param, _path is not actually an SPPath, it is - // a LivePathEffectObject. + // a LivePathEffectObject. (mad laughter) Effect *lpe = LIVEPATHEFFECT(_path)->get_lpe(); if (lpe) { PathParam *pathparam = dynamic_cast<PathParam *>(lpe->getParameter(_lpe_key.data())); @@ -1059,14 +1059,15 @@ void PathManipulator::_setGeometry() } } -/** LPE brain damage */ +/** Figure out in what attribute to store the nodetype string. */ Glib::ustring PathManipulator::_nodetypesKey() { if (_lpe_key.empty()) return "sodipodi:nodetypes"; return _lpe_key + "-nodetypes"; } -/** LPE brain damage */ +/** Return the XML node we are editing. + * This method is wrong but necessary at the moment. */ Inkscape::XML::Node *PathManipulator::_getXMLNode() { if (_lpe_key.empty()) return _path->repr; diff --git a/src/ui/tool/shape-record.h b/src/ui/tool/shape-record.h index 96c1551f6..fdb49ac36 100644 --- a/src/ui/tool/shape-record.h +++ b/src/ui/tool/shape-record.h @@ -34,7 +34,7 @@ struct ShapeRecord : SPItem *item; // SP node for the edited shape Geom::Matrix edit_transform; // how to transform controls - used for clipping paths and masks ShapeRole role; - Glib::ustring lpe_key; // This is LPE brain damage that I do not want to speak of + 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; } |
