diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-01-17 22:30:48 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-01-17 22:30:48 +0000 |
| commit | d97dcb5d03fa3e063c597788fa7f2c766ae5916e (patch) | |
| tree | 471f294f631eca82850a50a6f281b71cc26f195b /src/sp-spiral.cpp | |
| parent | documentation (diff) | |
| download | inkscape-d97dcb5d03fa3e063c597788fa7f2c766ae5916e.tar.gz inkscape-d97dcb5d03fa3e063c597788fa7f2c766ae5916e.zip | |
add underscores to some member variables.
add some const stuff
(bzr r10900)
Diffstat (limited to 'src/sp-spiral.cpp')
| -rw-r--r-- | src/sp-spiral.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp index 5341f6fd9..63d7a2616 100644 --- a/src/sp-spiral.cpp +++ b/src/sp-spiral.cpp @@ -159,14 +159,12 @@ sp_spiral_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::X // make sure the curve is rebuilt with all up-to-date parameters sp_spiral_set_shape(spiral); - //Duplicate the path - SPCurve *curve = spiral->curve; //Nulls might be possible if this called iteratively - if ( !curve ) { + if ( !spiral->_curve ) { //g_warning("sp_spiral_write(): No path to copy\n"); return NULL; } - char *d = sp_svg_write_path ( curve->get_pathvector() ); + char *d = sp_svg_write_path ( spiral->_curve->get_pathvector() ); repr->setAttribute("d", d); g_free (d); @@ -290,8 +288,8 @@ static void sp_spiral_update_patheffect(SPLPEItem *lpeitem, bool write) if (write) { Inkscape::XML::Node *repr = shape->getRepr(); - if ( shape->curve != NULL ) { - gchar *str = sp_svg_write_path(shape->curve->get_pathvector()); + if ( shape->_curve != NULL ) { + gchar *str = sp_svg_write_path(shape->_curve->get_pathvector()); repr->setAttribute("d", str); g_free(str); } else { |
