devilhorns pushed a commit to branch master.

commit e64011dc13da85190b2d7bb1b50e14a341a569a0
Author: Chris Michael <[email protected]>
Date:   Wed Jun 5 12:56:31 2013 +0100

    Check for valid savedtypes imgfile before trying to use it.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/elm_cnp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 682d6e3..f80e63c 100644
--- 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))
      {

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to