From a7418aa12850b2ca06e7ca49cb1de02b8e6e2dd7 Mon Sep 17 00:00:00 2001 From: LittleGuo Date: Sun, 25 Oct 2026 10:57:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=96=B0=E5=BB=BA=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=AE=BE=E5=A4=87=E5=AF=B9=E8=AF=9D=E6=A1=86=E4=B8=8A?= =?UTF-8?q?=E7=9A=84"=E6=8F=92=E5=85=A5=E8=AE=BE=E5=A4=87"=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix 新建自定义设备对话框上的"插入设备"无效 --- SourceCode/Code2026/PipelineCmd/EquLibDlg.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SourceCode/Code2026/PipelineCmd/EquLibDlg.cpp b/SourceCode/Code2026/PipelineCmd/EquLibDlg.cpp index 0706226..a4de393 100644 --- a/SourceCode/Code2026/PipelineCmd/EquLibDlg.cpp +++ b/SourceCode/Code2026/PipelineCmd/EquLibDlg.cpp @@ -712,15 +712,16 @@ AecDbEwEquipment * CEquLibDlg::selectEqu(LPCTSTR pszSearch , bool &bUseFangle , bool &b2DCheck) { - if (!pszSearch) return NULL; - CAcModuleResourceOverride myResources; CEquLibDlg dlg; dlg.m_bValveMode = true; dlg.m_bCheck2DFlag = bUseFangle; dlg.m_bUseFangle = b2DCheck; dlg.m_bSearch = TRUE; - dlg.m_sSearch = pszSearch; + if (!pszSearch) + dlg.m_sSearch = pszSearch; + else + dlg.m_sSearch = _T(""); if (dlg.DoModal() != IDOK) return NULL; bUseFangle = dlg.m_bUseFangle == 0 ? false : true;