查看单个帖子
旧 2009-05-06, 09:01 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odlylayerfilterparent90 does not work

odlylayerfilter:arent() does not work
odlylayerfilter:arent() does not work
assertion below fails. proot is of type (const odlylayerfilter*)
code:
for ( unsigned int i = 0; i < proot->getnestedfilters().length(); i++ )
assert((const odlylayerfilter*)proot->getnestedfilters()[i]->parent() == proot);
regards,
michal sliwka
attached files
this is a bug in dd - 'parent' property is not set while adding filters now.
you can easily implement this behaviour yourself if needed,
overriding addnested and getparent
besides, in current release, expression parsing is not implemented,
so if you need 'filter' function,
you should write you descendant anyway.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)