mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Fix to solve the problem in which m_Pane was not yet initialized at the time views were added.
This commit is contained in:
parent
9dc6a95bb8
commit
a502951fb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user