~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to src/ui/tool/node.cpp

  • Committer: Daniel Bailey
  • Date: 2016-05-15 21:20:09 UTC
  • Revision ID: d@nielbailey.com-20160515212009-6jy6jzon94nan9q5
fix TODO for arc segment handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
1629
1629
 
1630
1630
bool Node::_is_line_segment(Node *first, Node *second)
1631
1631
{
1632
 
    // TODO handle arc mode here
1633
1632
    if (!first || !second) return false;
1634
1633
    if (first->_next() == second)
1635
 
        return first->_front.isDegenerate() && second->_back.isDegenerate();
 
1634
        return first->_front.isDegenerate() && second->_back.isDegenerate() && first->_arc_rx.isDegenerate()  && first->_arc_ry.isDegenerate();
1636
1635
    if (second->_next() == first)
1637
 
        return second->_front.isDegenerate() && first->_back.isDegenerate();
 
1636
        return second->_front.isDegenerate() && first->_back.isDegenerate() && second->_arc_rx.isDegenerate()  && second->_arc_ry.isDegenerate();
1638
1637
    return false;
1639
1638
}
1640
1639