diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index 6a5d876d66aab9058668f96b8bd12dd479e4bebc..ff346edf932bd4b5cceec15821244555f4b8b6ae 100644 (file)
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
SPItem *item = (SPItem *) items->data;
- if (!SP_IS_PATH (item))
+ if (!SP_IS_PATH (item))
continue;
SPPath *path = SP_PATH (item);
SPCurve *curve = sp_shape_get_curve (SP_SHAPE (path));
- if (curve == NULL)
+ if (curve == NULL)
continue;
did = true;
// add the new repr to the parent
parent->appendChild(repr);
- // move to the saved position
+ // move to the saved position
repr->setPosition(pos > 0 ? pos : 0);
// if it's the first one, restore id
} else {
SP_DT_MSGSTACK(desktop)->flash(Inkscape::ERROR_MESSAGE, _("<b>No path(s)</b> to break apart in the selection."));
return;
- }
+ }
}
/* This function is an entry point from GUI */
@@ -280,7 +280,7 @@ sp_selected_path_to_curves0 (gboolean interactive, guint32 text_grouping_policy)
repr->setAttribute("id", id);
// add the new repr to the parent
parent->appendChild(repr);
- // move to the saved position
+ // move to the saved position
repr->setPosition(pos > 0 ? pos : 0);
selection->add(repr);
/* Transformation */
repr->setAttribute("transform", SP_OBJECT_REPR (item)->attribute("transform"));
/* Style */
- gchar *style_str = sp_style_write_difference (SP_OBJECT_STYLE (item),
+ gchar *style_str = sp_style_write_difference (SP_OBJECT_STYLE (item),
SP_OBJECT_STYLE (SP_OBJECT_PARENT (item)));
repr->setAttribute("style", style_str);
g_free (style_str);
sp_document_done (SP_DT_DOCUMENT (desktop));
} else {
SP_DT_MSGSTACK(desktop)->flash(Inkscape::ERROR_MESSAGE, _("<b>No paths</b> to reverse in the selection."));
- }
+ }
}