From eb1ced4988b8757c84e8f6f5f3ac8c9ecb46118a Mon Sep 17 00:00:00 2001 From: lvjunjie Date: Mon, 8 Jun 2026 10:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=B5=81=E5=8A=A8=E6=AE=B5?= =?UTF-8?q?=E5=90=8E=E4=B8=8B=E6=8B=89=E6=A1=86=E9=BB=98=E8=AE=A4=E5=85=88?= =?UTF-8?q?=E6=98=AF=E5=BD=93=E5=89=8D=E9=80=89=E6=8B=A9=E7=9A=84=E4=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp b/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp index 45d4365..182f2be 100644 --- a/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp +++ b/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp @@ -201,7 +201,8 @@ void nmWxNumericalDesign::fillResultWellCombo(const QString& selectedWellName) } // 当前井可能已经被删除;如果它已不在结果井下拉框中,就清空这个失效井名。 - if(!sCurrentWellName.isEmpty() && m_pResultWellCombo->findText(sCurrentWellName) < 0) { + if(!sCurrentWellName.isEmpty() && m_pResultWellCombo->count() > 0 + && m_pResultWellCombo->findText(sCurrentWellName) < 0) { sCurrentWellName.clear(); }