rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=f96b265e30dd2fa2bc705922077d1f12694411cd
commit f96b265e30dd2fa2bc705922077d1f12694411cd Author: Andrii Kroitor <[email protected]> Date: Mon Nov 16 17:24:53 2015 +0200 editor: fix reset functions logic --- src/bin/editor/default.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/editor/default.c b/src/bin/editor/default.c index 9dc3b38..d077057 100644 --- a/src/bin/editor/default.c +++ b/src/bin/editor/default.c @@ -36,7 +36,7 @@ Eina_Bool \ editor_##FUNC##_reset(Evas_Object *edit_object, Change *change, PROTO_ARGS) \ { \ assert(edit_object != NULL); \ - if (!editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ + if (editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ return editor_##FUNC##_set(edit_object, change, false, ARGS, RESET_VAL); \ } @@ -78,7 +78,7 @@ Eina_Bool \ editor_##FUNC##_reset(Evas_Object *edit_object, Change *change, PROTO_ARGS) \ { \ assert(edit_object != NULL); \ - if (!editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ + if (editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ return editor_##FUNC##_set(edit_object, change, false, ARGS, RESET_VAL); \ } @@ -116,7 +116,7 @@ Eina_Bool \ editor_##FUNC##_reset(Evas_Object *edit_object, Change *change, PROTO_ARGS) \ { \ assert(edit_object != NULL); \ - if (!editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ + if (editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ return editor_##FUNC##_set(edit_object, change, false, ARGS, RESET_VAL); \ } @@ -159,7 +159,7 @@ Eina_Bool \ editor_##FUNC##_reset(Evas_Object *edit_object, Change *change, PROTO_ARGS) \ { \ assert(edit_object != NULL); \ - if (!editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ + if (editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ return editor_##FUNC##_set(edit_object, change, false, ARGS, RESET_VAL); \ } @@ -195,7 +195,7 @@ Eina_Bool \ editor_##FUNC##_reset(Evas_Object *edit_object, Change *change, PROTO_ARGS) \ { \ assert(edit_object != NULL); \ - if (!editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ + if (editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ return editor_##FUNC##_set(edit_object, change, false, ARGS, RESET_VAL, RESET_VAL_2, RESET_VAL_3, RESET_VAL_4); \ } @@ -223,7 +223,7 @@ Eina_Bool \ editor_##FUNC##_reset(Evas_Object *edit_object, Change *change, PROTO_ARGS) \ { \ assert(edit_object != NULL); \ - if (!editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ + if (editor_##FUNC##_default_is(edit_object, ARGS)) return true; \ return editor_##FUNC##_set(edit_object, change, false, ARGS, RESET_VAL); \ } --
