improve object_find

This commit is contained in:
lixianjing 2024-09-05 18:40:25 +08:00
parent 65eecda31b
commit 1b2aa3fe38
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
2024/09/05
* 支持用户自己调用 OpenGL 绘制。
* 完善部分变量定义方便调试(感谢兆坤提供补丁)
* 修复object_find不正常的问题(感谢智明提供补丁)
2024/09/04
* 完善event\_from\_name(感谢兆坤提供补丁)

View File

@ -857,7 +857,7 @@ static value_t* tk_object_find_prop_default(tk_object_t* obj, tk_compare_t cmp,
actx.cmp = cmp;
actx.data = data;
actx.value = NULL;
if (RET_OK == tk_object_foreach_prop(obj, tk_object_find_prop_default_on_visit, &actx)) {
if (RET_FOUND == tk_object_foreach_prop(obj, tk_object_find_prop_default_on_visit, &actx)) {
return actx.value;
}
return NULL;