[commit] r2784 - trunk/GME/MgaUtil

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Apr 7 10:44:29 CDT 2020


Author: ksmyth
Date: Tue Apr  7 10:44:29 2020
New Revision: 2784

Log:
Fix model editor right-click>Annotations crash OPENMETA-706

Modified:
   trunk/GME/MgaUtil/AnnotationBrowserDlg.cpp

Modified: trunk/GME/MgaUtil/AnnotationBrowserDlg.cpp
==============================================================================
--- trunk/GME/MgaUtil/AnnotationBrowserDlg.cpp	Tue Apr  7 10:44:26 2020	(r2783)
+++ trunk/GME/MgaUtil/AnnotationBrowserDlg.cpp	Tue Apr  7 10:44:29 2020	(r2784)
@@ -184,7 +184,7 @@
 			lvItem.lParam = (LPARAM)node;
 
 			int retIdx = m_wndAnnotationList.InsertItem(&lvItem);
-			if (node->m_regNode->Path == m_focus->Path) {
+			if (m_focus && node->m_regNode->Path == m_focus->Path) {
 				focusIdx = retIdx;
 			}
 


More information about the gme-commit mailing list