projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8c1ed
)
Check for valid savedtypes imgfile before trying to use it.
author
Chris Michael
<cp.michael@samsung.com>
Wed, 5 Jun 2013 11:56:31 +0000
(12:56 +0100)
committer
Chris Michael
<cp.michael@samsung.com>
Wed, 5 Jun 2013 11:57:10 +0000
(12:57 +0100)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/elm_cnp.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_cnp.c
b/src/lib/elm_cnp.c
index
682d6e3
..
f80e63c
100644
(file)
--- a/
src/lib/elm_cnp.c
+++ b/
src/lib/elm_cnp.c
@@
-2756,6
+2756,8
@@
_wl_dropable_data_handle(Wl_Cnp_Selection *sel, char *data)
sdata.x = savedtypes.x;
sdata.y = savedtypes.y;
+ if (!savedtypes.imgfile) return;
+
if ((drop->types & ELM_SEL_FORMAT_MARKUP) &&
(drop->types & ELM_SEL_FORMAT_IMAGE))
{