|
楼主 |
发表于 2009-2-24 22:08:47
|
显示全部楼层
回复: Review - PR 253538 - The creation of a FCF with Dimension Info, hides t
CPCDcommand * command_dialog_ok(CPCDpart_program *m_pPartProgram, CDialog * dlg, int* KeepDlgOpen, int* commands_deleted)
if( needs_insert ) // PR253538 - don't insert auxilliary command if we are editing (F9)
{
if (pBeginObj) //you are modifying an existing command with F9, and this is adding new commands later it : to fix 235726
CreateText4new_objects = TRUE;
else //you are inserting more that 1 new command of the same type: to fix 236220
CreateText4new_objects = FALSE;
if (new_objects->InsertAtEnd(CreateText4new_objects)) // Passed in TRUE, so text gets drawn. If we wait until later, there is a chance it doesn't exist yet when we call EwRefreshObjectTextRange, so it won't draw the new commands. #235726, whb 10/17/2005
{
new_objects = RemoveCommands(new_objects);
if (commands_deleted)
* commands_deleted = TRUE;
}
//lastobj = m_pPartProgram->GetCurrentCommand(); // PR253538 - lastobj must point to main dialog command (e.g., FCF) and not the new_object (e.g., DimInfo)
}
else // PR253538 - we're editing (F9) so delete auxilliary command to avoid memory leaks
new_objects = RemoveCommands(new_objects); |
|