From 039d194d50daed7502a7b5ee741eede192ce1870 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 14 Jan 2010 23:43:09 -0800 Subject: [PATCH] Correcting statements collapsed to a single line. --- src/widgets/toolbox.cpp | 48 ++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index e37e1f828..f17686e5e 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -1033,84 +1033,108 @@ void sp_node_path_edit_add(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->insertNodes(); + if (nt) { + nt->_multipath->insertNodes(); + } } void sp_node_path_edit_delete(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->deleteNodes(); + if (nt) { + nt->_multipath->deleteNodes(); + } } void sp_node_path_edit_delete_segment(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->deleteSegments(); + if (nt) { + nt->_multipath->deleteSegments(); + } } void sp_node_path_edit_break(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->breakNodes(); + if (nt) { + nt->_multipath->breakNodes(); + } } void sp_node_path_edit_join(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->joinNodes(); + if (nt) { + nt->_multipath->joinNodes(); + } } void sp_node_path_edit_join_segment(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->joinSegments(); + if (nt) { + nt->_multipath->joinSegments(); + } } void sp_node_path_edit_toline(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->setSegmentType(Inkscape::UI::SEGMENT_STRAIGHT); + if (nt) { + nt->_multipath->setSegmentType(Inkscape::UI::SEGMENT_STRAIGHT); + } } void sp_node_path_edit_tocurve(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->setSegmentType(Inkscape::UI::SEGMENT_CUBIC_BEZIER); + if (nt) { + nt->_multipath->setSegmentType(Inkscape::UI::SEGMENT_CUBIC_BEZIER); + } } void sp_node_path_edit_cusp(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->setNodeType(Inkscape::UI::NODE_CUSP); + if (nt) { + nt->_multipath->setNodeType(Inkscape::UI::NODE_CUSP); + } } void sp_node_path_edit_smooth(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->setNodeType(Inkscape::UI::NODE_SMOOTH); + if (nt) { + nt->_multipath->setNodeType(Inkscape::UI::NODE_SMOOTH); + } } void sp_node_path_edit_symmetrical(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->setNodeType(Inkscape::UI::NODE_SYMMETRIC); + if (nt) { + nt->_multipath->setNodeType(Inkscape::UI::NODE_SYMMETRIC); + } } void sp_node_path_edit_auto(void) { InkNodeTool *nt = get_node_tool(); - if (nt) nt->_multipath->setNodeType(Inkscape::UI::NODE_AUTO); + if (nt) { + nt->_multipath->setNodeType(Inkscape::UI::NODE_AUTO); + } } static void toggle_show_transform_handles (GtkToggleAction *act, gpointer /*data*/) { -- 2.30.2