diff options
| author | VinÃcius dos Santos Oliveira <vini.ipsmaker@gmail.com> | 2014-05-05 07:13:35 +0000 |
|---|---|---|
| committer | VinÃcius dos Santos Oliveira <vini.ipsmaker@gmail.com> | 2014-05-05 07:13:35 +0000 |
| commit | 5a8b00f027b9eb3d4abb290d2ddf26d36d71cf80 (patch) | |
| tree | f85f72eb8642eb842dcd02f20967e5bd2b8b95d1 /src/ui/tool/node.h | |
| parent | update to trunk (diff) | |
| download | inkscape-5a8b00f027b9eb3d4abb290d2ddf26d36d71cf80.tar.gz inkscape-5a8b00f027b9eb3d4abb290d2ddf26d36d71cf80.zip | |
Enabling path manipulator to comunicate if paths are bspline when
accessing const objects.
This change was required to correctly show on the GUI whether or not a
node was a bspline.
(bzr r11950.8.1)
Diffstat (limited to 'src/ui/tool/node.h')
| -rw-r--r-- | src/ui/tool/node.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/tool/node.h b/src/ui/tool/node.h index 202dbb3cd..415563a7d 100644 --- a/src/ui/tool/node.h +++ b/src/ui/tool/node.h @@ -217,6 +217,7 @@ public: Node *nodeAwayFrom(Handle *h); NodeList &nodeList() { return *(static_cast<ListNode*>(this)->ln_list); } + NodeList &nodeList() const { return *(static_cast<ListNode const*>(this)->ln_list); } /** * Move the node to the bottom of its canvas group. @@ -263,6 +264,7 @@ private: Inkscape::SnapSourceType _snapSourceType() const; Inkscape::SnapTargetType _snapTargetType() const; inline PathManipulator &_pm(); + inline PathManipulator &_pm() const; /** Determine whether two nodes are joined by a linear segment. */ static bool _is_line_segment(Node *first, Node *second); @@ -494,6 +496,10 @@ inline PathManipulator &Node::_pm() { return nodeList().subpathList().pm(); } +inline PathManipulator &Node::_pm() const { + return nodeList().subpathList().pm(); +} + // definitions for node iterator template <typename N> NodeIterator<N>::operator bool() const { |
