summaryrefslogtreecommitdiffstats
path: root/src/ui/clipboard.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-10-12 10:05:07 +0000
committertavmjong-free <tavmjong@free.fr>2015-10-12 10:05:07 +0000
commitb76d7592902d9e27cb442e203ebffed4a915b8e6 (patch)
tree93c15fdd73c1d86c6dbeeeff3ba09341c5b365cf /src/ui/clipboard.cpp
parentExtensions. Random Tree: optionally omit redundant segments (bug #1500124) (diff)
downloadinkscape-b76d7592902d9e27cb442e203ebffed4a915b8e6.tar.gz
inkscape-b76d7592902d9e27cb442e203ebffed4a915b8e6.zip
Fix from Johan to prevent referencing null C++ pointer. Found via Clang scan build.
(bzr r14404)
Diffstat (limited to 'src/ui/clipboard.cpp')
-rw-r--r--src/ui/clipboard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 816daf2e5..0792fb9c5 100644
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
@@ -565,7 +565,7 @@ bool ClipboardManagerImpl::pastePathEffect(SPDesktop *desktop)
}
Inkscape::Selection *selection = desktop->getSelection();
- if (selection && selection->isEmpty()) {
+ if (!selection || selection->isEmpty()) {
_userWarn(desktop, _("Select <b>object(s)</b> to paste live path effect to."));
return false;
}