mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Fix for a problem with the system color changing.
This commit is contained in:
parent
24b26eda06
commit
ad1904a0a4
@ -1571,7 +1571,8 @@ void COutliner::OnSysColorChange ( )
|
||||
{
|
||||
|
||||
CWnd::OnSysColorChange ( );
|
||||
m_pIImage->ReInitialize();
|
||||
if (m_pIImage)
|
||||
m_pIImage->ReInitialize();
|
||||
m_pIUserImage->ReInitialize();
|
||||
Invalidate ( );
|
||||
}
|
||||
|
@ -1105,7 +1105,7 @@ int CRDFOutliner::DetermineClickLocation(CPoint point)
|
||||
int area = point.x % iImageWidth; // Determine where within the particular level the click occurred
|
||||
int left = (iImageWidth - iBarWidth) / 2;
|
||||
int right = left + iBarWidth;
|
||||
if (area >= left && area <= right) // Hard-code it for now.
|
||||
if (area >= left && area <= right)
|
||||
return CLICKED_BAR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user