projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd6fcc
)
enlightenment: Make sure we have a zone before calling
author
Chris Michael
<cp.michael@samsung.com>
Wed, 14 Oct 2015 14:59:31 +0000
(10:59 -0400)
committer
Chris Michael
<cp.michael@samsung.com>
Wed, 14 Oct 2015 14:59:31 +0000
(10:59 -0400)
_bgpreview_viewport_update
@fix CID1324753
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_widget_bgpreview.c
patch
|
blob
|
history
diff --git
a/src/bin/e_widget_bgpreview.c
b/src/bin/e_widget_bgpreview.c
index
79932b8
..
c4dbb20
100644
(file)
--- a/
src/bin/e_widget_bgpreview.c
+++ b/
src/bin/e_widget_bgpreview.c
@@
-324,11
+324,13
@@
_e_wid_cb_bg_update(void *data, int type, void *event)
((ev->desk_x < 0) || (dd->x == ev->desk_x)) &&
((ev->desk_y < 0) || (dd->y == ev->desk_y)))
{
+ E_Zone *zone;
const char *bgfile;
+ zone = e_comp_zone_number_get(dd->zone);
bgfile = e_bg_file_get(dd->zone, dd->x, dd->y);
edje_object_file_set(dd->thumb, bgfile, "e/desktop/background");
-
_bgpreview_viewport_update(dd->thumb, e_comp_zone_number_get(dd->zone)
, dd->x, dd->y);
+
if (zone) _bgpreview_viewport_update(dd->thumb, zone
, dd->x, dd->y);
eina_stringshare_del(bgfile);
}