From 6ba3339d252eb3e06f95d032608cd0401f19c194 Mon Sep 17 00:00:00 2001 From: Taehyub Kim Date: Mon, 16 May 2016 23:30:25 +0900 Subject: [PATCH] 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 --- src/lib/template.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/lib/template.c b/src/lib/template.c index d4af185..055fa92 100644 --- a/src/lib/template.c +++ b/src/lib/template.c @@ -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;
", 1, 1); - elm_entry_entry_insert(edit_entry, buf); - elm_entry_entry_insert(edit_entry, p); - snprintf(buf, sizeof(buf), " min: %d %d;
", 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;
", 1, 1); + elm_entry_entry_insert(edit_entry, buf); + elm_entry_entry_insert(edit_entry, p); + snprintf(buf, sizeof(buf), " min: %d %d;
", 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