From 12c02f064db12d6d94063bf6dd9e4eb80f4252b8 Mon Sep 17 00:00:00 2001
From: LYW <leeyeanwoo@diteam.co.kr>
Date: 월, 11 10월 2021 15:30:00 +0900
Subject: [PATCH] Ongoing60 #3662 CF AOI Review 전설비 알람 발생 조치 - Review History File Mapping 해제 - Review Inner History 다운 현상 예외처리 추가 - Review End 시 Review 다운 현상 예외처리 추가

---
 ReviewSystem/ReviewSystem/DlgDeffectHistroy.cpp |   37 ++++++++++++++++++++++++-------------
 1 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/ReviewSystem/ReviewSystem/DlgDeffectHistroy.cpp b/ReviewSystem/ReviewSystem/DlgDeffectHistroy.cpp
index 7704ff5..17200a9 100644
--- a/ReviewSystem/ReviewSystem/DlgDeffectHistroy.cpp
+++ b/ReviewSystem/ReviewSystem/DlgDeffectHistroy.cpp
@@ -575,23 +575,34 @@
 
 void CDlgDeffectHistroy::OnDblclkListHistoryDefect(NMHDR *pNMHDR, LRESULT *pResult)
 {
-	LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
-	// TODO: �뿬湲곗뿉 而⑦듃濡� �븣由� 泥섎━湲� 肄붾뱶瑜� 異붽��빀�땲�떎.
-	
-	int nPos = m_ctrlListDefectHistory.GetSelectionMark();
-	if (nPos >= 0)
+
+	/*< LYW 20211005 - #3662 ADD Start >*/
+	try
 	{
-		CString strText;
-		strText = m_ctrlListDefectHistory.GetItemText(nPos, 0);
-		int nDefectIdx = _ttoi(strText);
-		if (nDefectIdx < 0)
-			return;
+		LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
+		// TODO: �뿬湲곗뿉 而⑦듃濡� �븣由� 泥섎━湲� 肄붾뱶瑜� 異붽��빀�땲�떎.
 
-		//History tool �뿉 �씤�뜳�뒪 踰덊샇 �꽆湲곌린
-		m_pDDL2P->UpdateSelectDefectInfoMap2(nDefectIdx);
+		int nPos = m_ctrlListDefectHistory.GetSelectionMark();
+		if (nPos >= 0)
+		{
+			CString strText;
+			strText = m_ctrlListDefectHistory.GetItemText(nPos, 0);
+			int nDefectIdx = _ttoi(strText);
+			if (nDefectIdx < 0)
+				return;
+
+			//History tool �뿉 �씤�뜳�뒪 踰덊샇 �꽆湲곌린
+			m_pDDL2P->UpdateSelectDefectInfoMap2(nDefectIdx);
+		}
+
+		*pResult = 0;
 	}
+	catch (...)
+	{
+		return;
+	}
+	/*< LYW 20211005 - #3662 ADD End >*/
 
-	*pResult = 0;
 }
 
 void CDlgDeffectHistroy::OnSize(UINT nType, int cx, int cy)

--
Gitblit v1.9.3