summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-12-21 16:16:55 +0200
committerYakov Goldberg <yakov.g@samsung.com>2014-12-21 16:16:55 +0200
commit1a50d8f828e303fa9146e9541e9745eba6b1ae84 (patch)
tree8b32dc4210fc48d217791212f97bd2593af7c280 /src/bin
parent3661d523561e093d9293934b07189d0e99f499f5 (diff)
Resize main widgets: fix segv
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/egui_gui/editor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/egui_gui/editor.c b/src/bin/egui_gui/editor.c
index 7d26d16..656c999 100644
--- a/src/bin/egui_gui/editor.c
+++ b/src/bin/egui_gui/editor.c
@@ -824,7 +824,8 @@ _marker_mouse_up(void *data, Eo *obj, const Eo_Event_Description *desc EINA_UNUS
824 } 824 }
825 else 825 else
826 { 826 {
827 if ((INT_GET(prop_value_nth_get(prop, 0)) == INT_GET(prop_value_nth_get(_mmd->prop_size, 0))) && 827 if (_mmd->prop_size &&
828 (INT_GET(prop_value_nth_get(prop, 0)) == INT_GET(prop_value_nth_get(_mmd->prop_size, 0))) &&
828 (INT_GET(prop_value_nth_get(prop, 1)) == INT_GET(prop_value_nth_get(_mmd->prop_size, 1)))) 829 (INT_GET(prop_value_nth_get(prop, 1)) == INT_GET(prop_value_nth_get(_mmd->prop_size, 1))))
829 { 830 {
830 goto end; 831 goto end;
@@ -848,7 +849,8 @@ _marker_mouse_up(void *data, Eo *obj, const Eo_Event_Description *desc EINA_UNUS
848 } 849 }
849 else 850 else
850 { 851 {
851 if ((INT_GET(prop_value_nth_get(prop, 0)) == INT_GET(prop_value_nth_get(_mmd->prop_pos, 0))) && 852 if (_mmd->prop_pos &&
853 (INT_GET(prop_value_nth_get(prop, 0)) == INT_GET(prop_value_nth_get(_mmd->prop_pos, 0))) &&
852 (INT_GET(prop_value_nth_get(prop, 1)) == INT_GET(prop_value_nth_get(_mmd->prop_pos, 1)))) 854 (INT_GET(prop_value_nth_get(prop, 1)) == INT_GET(prop_value_nth_get(_mmd->prop_pos, 1))))
853 { 855 {
854 goto end; 856 goto end;