diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2014-10-24 14:53:41 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2014-10-24 14:53:41 +0000 |
| commit | b2336cda4ca07849f7fe96438980ecdb3374064f (patch) | |
| tree | eea2dc27c4ebcd261a5f406f68dae934e9778f4b /src/path-chemistry.cpp | |
| parent | Update for osx packaging (re merge review by bryce): (diff) | |
| download | inkscape-b2336cda4ca07849f7fe96438980ecdb3374064f.tar.gz inkscape-b2336cda4ca07849f7fe96438980ecdb3374064f.zip | |
Address possible-yet-unlikely null parent scenario.
(bzr r13636)
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 56aafcb02..9456135f7 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -494,7 +494,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) g_repr->setAttribute("inkscape:transform-center-y", item->getRepr()->attribute("inkscape:transform-center-y"), false); /* Whole text's style */ gchar *style_str = sp_style_write_difference(item->style, - item->parent->style); + item->parent ? item->parent->style : NULL); // TODO investigate posibility g_repr->setAttribute("style", style_str); g_free(style_str); Inkscape::Text::Layout::iterator iter = te_get_layout(item)->begin(); @@ -515,7 +515,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) pos_obj = pos_obj->parent; // SPStrings don't have style } gchar *style_str = sp_style_write_difference(pos_obj->style, - pos_obj->parent->style); + pos_obj->parent ? pos_obj->parent->style : NULL); // TODO investigate posibility // get path from iter to iter_next: SPCurve *curve = te_get_layout(item)->convertToCurves(iter, iter_next); @@ -575,7 +575,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) repr->setAttribute("transform", item->getRepr()->attribute("transform")); /* Style */ gchar *style_str = sp_style_write_difference(item->style, - item->parent->style); + item->parent ? item->parent->style : NULL); // TODO investigate posibility repr->setAttribute("style", style_str); g_free(style_str); |
