|
楼主 |
发表于 2008-7-26 23:46:48
|
显示全部楼层
回复: review PR 249849 PCDMIS crash when editing FCF true position
// PR249849 - if we deleted a feature, we must rebuild the array m_leaderFeatures
if( newptr == NULL )
{
CPCDcommand ** leaderFeatures = NULL;
if( GetNumLeaderLines() > 1 )
{
leaderFeatures = new CPCDcommand *[GetNumLeaderLines()-1];
int inx = 0;
for(int j=0; j<GetNumLeaderLines(); j++ )
{
if( m_leaderFeatures[j] != NULL )
leaderFeatures[inx++] = m_leaderFeatures[j];
}
}
SetLeaderFeatures(leaderFeatures, GetNumLeaderLines()-1);
delete [] leaderFeatures;
}
break;
} |
|