summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp4
1 files changed, 2 insertions, 2 deletions
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<SPObject *>(rawptr);
while (dynamic_cast<SPString const *>(pos_obj) && pos_obj->parent) {
pos_obj = pos_obj->parent; // SPStrings don't have style
}