summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-27 00:42:29 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-27 00:42:29 +0000
commitfefbd217fefe5e29d7913e58ff8b1bc9d8d44939 (patch)
tree0fc16570bde5385eeb4933224cdfff67532bf4c4 /src/path-chemistry.cpp
parentAdding cout << output to check bug in Geom::are_near (diff)
parentChanged some return types from gint to bool. (diff)
downloadinkscape-fefbd217fefe5e29d7913e58ff8b1bc9d8d44939.tar.gz
inkscape-fefbd217fefe5e29d7913e58ff8b1bc9d8d44939.zip
update to trunk
(bzr r11950.1.315)
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index 22928ccdd..d355b49fe 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -83,8 +83,8 @@ sp_selected_path_combine(SPDesktop *desktop)
gint position = 0;
char const *id = NULL;
char const *transform = NULL;
- Glib::ustring style;
- Glib::ustring path_effect;
+ char const *style = NULL;
+ char const *path_effect = NULL;
SPCurve* curve = NULL;
SPItem *first = NULL;
@@ -153,7 +153,7 @@ sp_selected_path_combine(SPDesktop *desktop)
// set path data corresponding to new curve
gchar *dstring = sp_svg_write_path(curve->get_pathvector());
curve->unref();
- if (!path_effect.empty()) {
+ if (path_effect) {
repr->setAttribute("inkscape:original-d", dstring);
} else {
repr->setAttribute("d", dstring);
@@ -365,7 +365,7 @@ sp_item_list_to_curves(const GSList *items, GSList **selected, GSList **to_selec
items = items->next) {
SPItem *item = SP_ITEM(items->data);
- SPDocument *document = item->document;
+ SPDocument *document = item->document;
if ( skip_all_lpeitems &&
SP_IS_LPE_ITEM(item) &&
@@ -443,12 +443,12 @@ sp_item_list_to_curves(const GSList *items, GSList **selected, GSList **to_selec
parent->appendChild(repr);
SPObject* newObj = document->getObjectByRepr(repr);
if (title && newObj) {
- newObj->setTitle(title);
- g_free(title);
+ newObj->setTitle(title);
+ g_free(title);
}
if (desc && newObj) {
- newObj->setDesc(desc);
- g_free(desc);
+ newObj->setDesc(desc);
+ g_free(desc);
}
// move to the saved position