summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-09-16 21:11:01 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-09-16 21:11:01 +0000
commit8456986cea7b4a4cce5135e9b4170d39630a50ac (patch)
tree20464cca95bf3f70bb5e89d69bdb1b832b3e02e5 /src/path-chemistry.cpp
parentFix operands in LPE bool (diff)
downloadinkscape-8456986cea7b4a4cce5135e9b4170d39630a50ac.tar.gz
inkscape-8456986cea7b4a4cce5135e9b4170d39630a50ac.zip
Improve casts from voids and fix a issue when fill/stroke is unset set desktop styles with it
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
}