summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f44adf7)
raw | patch | inline | side by side (parent: f44adf7)
author | Jon A. Cruz <jon@joncruz.org> | |
Fri, 15 Jan 2010 07:43:09 +0000 (23:43 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Fri, 15 Jan 2010 07:43:09 +0000 (23:43 -0800) |
src/widgets/toolbox.cpp | patch | blob | history |
index e37e1f8289a627bd28ce4e4f97d14fe9d8103738..f17686e5e0e53f0a5f0525a47fa8f39cbb102751 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
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*/) {