高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】invalid id by oddbviewportgetfrozenlayerlis
invalid id by oddbviewport::getfrozenlayerlist
invalid id by oddbviewport::getfrozenlayerlist
hi,
read attachment file.
exception error.
text havigng annotation scales.
code:
oddbviewport pent;
...
oddbobjectidarray ary;
pent->getfrozenlayerlist( ary );
for( int i=0; i<ary.size(); i++ )
{
oddbobjectid id = ary.getat(i);
if( !id.isnull() )
{
oddblayertablerecordptr play = id.safeopenobject(); // exception error!!
...
}
}thanks.
attached files
there is a bug in 2.5.1 with frozzen layers list.
the workaround is to check if the layer id is erased.
vladimir
|