X-Git-Url: https://git.cworth.org/git?p=vogl;a=blobdiff_plain;f=src%2Fvogleditor%2Fvogleditor_qstatetreemodel.cpp;h=7a0b1fc9f88d9dc30e9144cad62e67164188087c;hp=610bd1b6bdaf1638cef17b17a70f43d5cb33e348;hb=3c0003252364822639ce04535f221120f09b56a1;hpb=330dbd27c92a6c62125cdb7c14c16154383f4ccb diff --git a/src/vogleditor/vogleditor_qstatetreemodel.cpp b/src/vogleditor/vogleditor_qstatetreemodel.cpp index 610bd1b..7a0b1fc 100644 --- a/src/vogleditor/vogleditor_qstatetreemodel.cpp +++ b/src/vogleditor/vogleditor_qstatetreemodel.cpp @@ -167,7 +167,7 @@ void vogleditor_QStateTreeModel::setupModelData(vogleditor_gl_state_snapshot* pS const vogl_context_desc& desc = pContext->get_context_desc(); vogleditor_stateTreeContextItem* pContextItem = new vogleditor_stateTreeContextItem(tmp.sprintf("Context %p", (void*)desc.get_trace_context()), "", parent, *pContext); - if (m_pBaseSnapshot != NULL && m_pBaseSnapshot->get_contexts().size() > 0 && m_pBaseSnapshot->get_contexts().at(c) != NULL) + if (m_pBaseSnapshot != NULL && m_pBaseSnapshot->is_valid() && m_pBaseSnapshot->get_contexts().size() > 0 && m_pBaseSnapshot->get_contexts().at(c) != NULL) { // set the diff state to be the same state, so that there does not appear to be any diff's const vogl_context_snapshot* pDiffContext = m_pBaseSnapshot->get_contexts()[c];