几何尺寸与公差论坛

 找回密码
 注册
查看: 69|回复: 1

PR 260071 & PR 253538 & PR 259995 check Display Diminfo, then

[复制链接]
发表于 2009-2-26 12:14:27 | 显示全部楼层 |阅读模式
<< Don Turcotte -- 02/25/09 13:14:58>>
F9 on distance dimension, then check Display Diminfo, then Create -- no diminfo is created

Works only on new dimension, If F9 on distance dimension that has diminfo and uncheck Display Diminfo, then Create, the diminfo is not deleted even though a subsequent F9 on the dimension has the Display Diminfo unchecked (if check again, will get a second diminfo created).

Steps to reproduce:
Create 2d Distance dimension without diminfo
F9 on Distance dimension and check "Dimension Info / Display"
Create

Results:
No diminfo created - this works in V432 and V42 MR2
<<END>>

<< Don Turcotte -- 02/25/09 17:20:33>>
This was caused by the fix for #253538. I have fixed the current PR and also verified that #253538 is still working.
Fixed in V44B.
Files inserted to server
------------------------
V44B\SOURCE\GLOBALS.CPP
<<END>>
<< Changes made by Don Turcotte -- 02/25/09 17:21:50>>
Action: Don Turcotte to Yanhua Huang, Status: OPEN to REVIEW
<<END>>
<< Changes made by Don Turcotte -- 02/25/09 17:20:33>>
Priority: to Critical
<<END>>
 楼主| 发表于 2009-2-26 12:54:14 | 显示全部楼层

回复: PR 260071 F9 on distance dimension, then check Display Diminfo, then Cr

CPCDcommand * command_dialog_ok(CPCDpart_program *m_pPartProgram, CDialog * dlg, int* KeepDlgOpen, int* commands_deleted, BOOL bUpdateObjectsReferencing /*= TRUE*/) // PR253846 - avoid duplicate prompts "Do you want to update nominals of related dimensions?"
      // PR260071 - if we are editing, check if this is a dimension with existing diminfo command
      //            delete any diminfo command found for this dimension
      CPCDcommand *pDialogCommand = m_pPartProgram->GetDialogCommand();
      if( !needs_insert && pDialogCommand->is_dimension() )
      {
        CPCDcommand *p = pDialogCommand->next;
        while( p )
        {
          if( p->is_dimensionInfo() && p->use_pointer(pDialogCommand) )
          {
            remove_command_obj(p);
            break;
          }
          p = p->next;
        }
      }


        // PR260071
        if( !needs_insert ) // make sure create_text(...) of base command gets called later
          CreateText4new_objects = FALSE;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 23:33 , Processed in 0.034633 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表