template: fix the fixed condition for relative_to

Summary:
fix the fixed condifion for relative_to.
the condition was wrong, so I fixed it.

Test Plan:
1. Launch Enventor
2. Click a Live Edit Item
3. Check fixed_w and fixed_h
4. Insert the Live Edit Item

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3943
This commit is contained in:
Taehyub Kim 2016-05-16 23:30:25 +09:00 committed by Hermet Park
parent afd04c7469
commit 6ba3339d25
1 changed files with 7 additions and 10 deletions

View File

@ -321,16 +321,13 @@ template_part_insert(edit_data *ed, Edje_Part_Type part_type,
//Width and Height are fixed
else if(fixed_w && fixed_h)
{
if (!rel1_x_to || !rel1_y_to || !rel2_x_to || !rel2_y_to)
{
elm_entry_entry_insert(edit_entry, p);
snprintf(buf, sizeof(buf), " fixed: %d %d;<br/>", 1, 1);
elm_entry_entry_insert(edit_entry, buf);
elm_entry_entry_insert(edit_entry, p);
snprintf(buf, sizeof(buf), " min: %d %d;<br/>", min_w, min_h);
elm_entry_entry_insert(edit_entry, buf);
line_cnt += 2;
}
elm_entry_entry_insert(edit_entry, p);
snprintf(buf, sizeof(buf), " fixed: %d %d;<br/>", 1, 1);
elm_entry_entry_insert(edit_entry, buf);
elm_entry_entry_insert(edit_entry, p);
snprintf(buf, sizeof(buf), " min: %d %d;<br/>", min_w, min_h);
elm_entry_entry_insert(edit_entry, buf);
line_cnt += 2;
}
//If there are some relative_to part then insert relative_to