Fix to solve the problem in which m_Pane was not yet initialized at the time views were added.

This commit is contained in:
hyatt 1998-04-06 18:57:43 +00:00
parent 9dc6a95bb8
commit a502951fb6

View File

@ -633,10 +633,6 @@ void CSelector::AddViewContext(const char* pTitle, CView* pView, CRDFContentView
}
void CSelector::PopulatePane()
{
// Construct the notification struct used by HT
@ -700,7 +696,9 @@ void CSelector::ConstructView(HT_View theView)
}
theParent->GetClientRect(&rClient);
CRDFOutlinerParent* newParent = new CRDFOutlinerParent(m_Pane, theView);
// Can't use CSelector's m_Pane, because it might not have been initialized yet. Calls
// HT_GetPane instead.
CRDFOutlinerParent* newParent = new CRDFOutlinerParent(HT_GetPane(theView), theView);
CRDFContentView* newView = new CRDFContentView(newParent);
// Create the windows