rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=95e2d39f185f1018c2ad6bb6299e09f7941ec690

commit 95e2d39f185f1018c2ad6bb6299e09f7941ec690
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Mon Jul 20 14:01:36 2015 +0300

    group_edit: add assertion to part_rename
    
    Claim that renamed part is exist and new required
    name is free
---
 src/bin/ui/workspace/groupedit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/ui/workspace/groupedit.c b/src/bin/ui/workspace/groupedit.c
index ca69e44..0733fa4 100644
--- a/src/bin/ui/workspace/groupedit.c
+++ b/src/bin/ui/workspace/groupedit.c
@@ -365,14 +365,17 @@ groupedit_edit_object_part_rename(Evas_Object *obj,
                                   const char *part_new_name)
 {
    Groupedit_Part *gp;
+   Groupedit_Part *gp2;
    WS_GROUPEDIT_DATA_GET(obj, sd)
 
    assert(part_old_name != NULL);
    assert(part_new_name != NULL);
 
    gp = _parts_list_find(sd->parts, part_old_name);
+   gp2 = _parts_list_find(sd->parts, part_new_name);
 
    assert(gp != NULL);
+   assert(gp2 == NULL);
 
    eina_stringshare_replace(&gp->name, part_new_name);
 

-- 


Reply via email to