summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/text-tool.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/ui/tools/text-tool.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/ui/tools/text-tool.cpp')
-rw-r--r--src/ui/tools/text-tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp
index 7434d598f..651a00632 100644
--- a/src/ui/tools/text-tool.cpp
+++ b/src/ui/tools/text-tool.cpp
@@ -1612,7 +1612,7 @@ int TextTool::_styleQueried(SPStyle *style, int property)
if (!rawptr || !SP_IS_OBJECT(rawptr)) {
continue;
}
- pos_obj = SP_OBJECT(rawptr);
+ pos_obj = reinterpret_cast<SPObject *>(rawptr);
while (SP_IS_STRING(pos_obj) && pos_obj->parent) {
pos_obj = pos_obj->parent; // SPStrings don't have style
}