diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-12-08 23:09:46 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-12-08 23:09:46 +0000 |
| commit | b57dcebd2f4efb8babd1219d5344400640cb1ac7 (patch) | |
| tree | f1349cbf7ab26d4ec5242d3cbc36a4ef2672ebe4 /src/sp-polygon.cpp | |
| parent | Fix a bug delete BSpline LPE from a path retain some BSpline properties (diff) | |
| parent | patch by Adolf Mathias and ~suv for Bug 1136495 (diff) | |
| download | inkscape-b57dcebd2f4efb8babd1219d5344400640cb1ac7.tar.gz inkscape-b57dcebd2f4efb8babd1219d5344400640cb1ac7.zip | |
Update to trunk
(bzr r11950.1.207)
Diffstat (limited to 'src/sp-polygon.cpp')
| -rw-r--r-- | src/sp-polygon.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sp-polygon.cpp b/src/sp-polygon.cpp index 10d097e70..302905a62 100644 --- a/src/sp-polygon.cpp +++ b/src/sp-polygon.cpp @@ -82,9 +82,12 @@ Inkscape::XML::Node* SPPolygon::write(Inkscape::XML::Document *xml_doc, Inkscape } /* We can safely write points here, because all subclasses require it too (Lauris) */ - gchar *str = sp_svg_write_polygon(this->_curve->get_pathvector()); - repr->setAttribute("points", str); - g_free(str); + /* While saving polygon element without points attribute _curve is NULL (see bug 1202753) */ + if (this->_curve != NULL) { + gchar *str = sp_svg_write_polygon(this->_curve->get_pathvector()); + repr->setAttribute("points", str); + g_free(str); + } SPShape::write(xml_doc, repr, flags); |
