summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-02-06 00:16:59 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-02-06 00:16:59 +0900
commitc5ee73d54f8f84e3f1d858f7d2c6c4395aa1ab88 (patch)
tree856a181bca7ab07c9158f09b12ecb05a20e078c3
parentf77a66c5b1533e6758eeb82a85b756f75764e48a (diff)
win - +null object checking.
it allows previous highlighted object is empty. So it should be checked before accessing.
-rw-r--r--src/lib/elm_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index de10924e6..2f02652bc 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -803,7 +803,8 @@ _elm_win_focus_highlight_reconfigure(Elm_Win_Smart_Data *sd)
803 if ((!target) || (!common_visible) || (sd->focus_highlight.cur.in_theme)) 803 if ((!target) || (!common_visible) || (sd->focus_highlight.cur.in_theme))
804 goto the_end; 804 goto the_end;
805 805
806 focus_style_previous = elm_widget_focus_highlight_style_get(previous); 806 if (previous)
807 focus_style_previous = elm_widget_focus_highlight_style_get(previous);
807 focus_style_target = elm_widget_focus_highlight_style_get(target); 808 focus_style_target = elm_widget_focus_highlight_style_get(target);
808 809
809 if (sd->focus_highlight.theme_changed || 810 if (sd->focus_highlight.theme_changed ||