mirror of https://github.com/BOINC/boinc.git
Fix assert in Simple Preferences: use window foreground color for CTransparentStaticLine if skin does not specify <static_line_color>
This commit is contained in:
parent
6f3899e14e
commit
8caede1641
|
@ -6222,6 +6222,8 @@ Charlie 25 Oct 2012
|
|||
- Mac: Eliminate some unnecessary code.
|
||||
- Mac: Fix Quit command in Simple View and a crash bug with Quit AppleEvent.
|
||||
- Fix a bad FlexGridSizer in Simple Preferences dialog which caused assert.
|
||||
- Fix assert in Simple Preferences: use window foreground color for
|
||||
CTransparentStaticLine if skin does not specify <static_line_color>.
|
||||
|
||||
clientgui/
|
||||
BOINCGUIApp.cpp
|
||||
|
|
|
@ -43,6 +43,7 @@ bool CTransparentStaticLine::Create(wxWindow* parent, wxWindowID id, const wxPoi
|
|||
SetBackgroundColour(parent->GetBackgroundColour());
|
||||
SetBackgroundStyle(wxBG_STYLE_COLOUR);
|
||||
SetForegroundColour(parent->GetForegroundColour());
|
||||
SetLineColor(GetForegroundColour());
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
);
|
||||
|
||||
wxColour GetLineColor() const { return m_LineColor ; }
|
||||
void SetLineColor(wxColour value) { m_LineColor = value ; }
|
||||
void SetLineColor(wxColour value) { if (value != wxNullColour) m_LineColor = value ; }
|
||||
|
||||
virtual bool HasTransparentBackground() { return true; };
|
||||
|
||||
|
|
Loading…
Reference in New Issue