Check for valid savedtypes imgfile before trying to use it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-05 12:56:31 +01:00
parent bfc63634c1
commit 04ff986be5
1 changed files with 2 additions and 0 deletions

View File

@ -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))
{