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(); }