summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Holder <thomas.holder@schrodinger.com>2018-09-10 15:09:42 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-10 16:17:40 +0000
commitc3d27b994e0079fc656e756bf5a3da3b517a334e (patch)
tree49f89c280a848c18e4dc5894bde63f0ea010c859 /src
parentMerge branch 'yhoshi/inkscape-bug167900' (diff)
downloadinkscape-c3d27b994e0079fc656e756bf5a3da3b517a334e.tar.gz
inkscape-c3d27b994e0079fc656e756bf5a3da3b517a334e.zip
fix nullptr bool warning
Diffstat (limited to 'src')
-rw-r--r--src/style-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style-internal.h b/src/style-internal.h
index f716601f6..22148b132 100644
--- a/src/style-internal.h
+++ b/src/style-internal.h
@@ -880,7 +880,7 @@ public:
}
bool isPaintserver() const {
- return (value.href) ? value.href->getObject() : nullptr;
+ return value.href && value.href->getObject() != nullptr;
}
void setColor( float r, float g, float b ) {