From 8456986cea7b4a4cce5135e9b4170d39630a50ac Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 16 Sep 2019 23:11:01 +0200 Subject: Improve casts from voids and fix a issue when fill/stroke is unset set desktop styles with it --- src/path-chemistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index d4e1809f7..4ff6d6420 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -507,8 +507,8 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) void *rawptr = nullptr; te_get_layout(item)->getSourceOfCharacter(iter, &rawptr); if (!rawptr || !SP_IS_OBJECT(rawptr)) // no source for glyph, abort - break; - pos_obj = SP_OBJECT(rawptr); + break; + pos_obj = reinterpret_cast(rawptr); while (dynamic_cast(pos_obj) && pos_obj->parent) { pos_obj = pos_obj->parent; // SPStrings don't have style } -- cgit v1.2.3