|
楼主 |
发表于 2009-3-2 21:27:30
|
显示全部楼层
回复: PR 258737 F9 + edit existing Angle between dimension, then Cancel (Clos
// PR258737
if( m_pSavedDialogCommand )
{
CPCDcommand * pDialogCommand = m_pPartProgram->GetDialogCommand();
if( pDialogCommand )
{
m_pSavedDialogCommand->prev = pDialogCommand->prev;
if( m_pSavedDialogCommand->prev ) // in the program linked list
{
m_pSavedDialogCommand->prev->next = m_pSavedDialogCommand;
m_pSavedDialogCommand->next = pDialogCommand->next;
if( m_pSavedDialogCommand->next )
m_pSavedDialogCommand->next->prev = m_pSavedDialogCommand;
replace_pointer(m_pPartProgram, pDialogCommand, m_pSavedDialogCommand);
replace_edit_pointers(m_pPartProgram,&pDialogCommand,&m_pSavedDialogCommand,1);
delete pDialogCommand; // PR256131 - yanhua - Found memory leak when edit the 3D distance.
pDialogCommand = NULL;
}
}
} |
|