forked from enlightenment/efl
edje: add warning when not finding the exact match.
This will close T223.
This commit is contained in:
parent
c48f4e6143
commit
93b0fbfe65
|
@ -5080,6 +5080,13 @@ st_collections_group_parts_part_description_inherit(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (min_dst)
|
||||
{
|
||||
WRN("%s:%i: couldn't find an exact match in part '%s' when looking for '%s' %lf. Falling back to nearest one '%s' %lf.",
|
||||
file_in, line - 1, ep->name, parent_name, parent_val, parent->state.name, parent->state.value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!parent)
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
collections
|
||||
{
|
||||
group
|
||||
{
|
||||
name: "test";
|
||||
min:200 200;
|
||||
parts
|
||||
{
|
||||
part
|
||||
{
|
||||
name: "bug";
|
||||
type: RECT;
|
||||
description
|
||||
{
|
||||
state: "default" 0;
|
||||
min:50 50;
|
||||
max: 50 50;
|
||||
color: 255 255 0 255;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "inherit-test" 0;
|
||||
inherit: "default" 1; // edje_cc should throw error or warning.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue