summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-10-12 10:38:33 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-10-12 10:38:33 +0000
commitc032ef3f452e51e5ca4e63c00099194571e39a9e (patch)
treea789b06236008f2060e99e8132b2a02639038e37 /src
parentConvert Measure to Item done (diff)
parentFix from Johan to prevent referencing null C++ pointer. Found via Clang scan ... (diff)
downloadinkscape-c032ef3f452e51e5ca4e63c00099194571e39a9e.tar.gz
inkscape-c032ef3f452e51e5ca4e63c00099194571e39a9e.zip
update to trunk
(bzr r14393.1.18)
Diffstat (limited to 'src')
-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;
}