forked from 0ad/0ad
Avoid calling unnecessary inline functions, to work around GCC visibility issues (see #281)
This was SVN commit r7030.
This commit is contained in:
parent
05d73edd2f
commit
21b3d13c64
@ -66,7 +66,7 @@ public:
|
||||
void OnButton(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxColour c = wxGetColourFromUser(this, m_Colour);
|
||||
if (c.Ok())
|
||||
if (c.IsOk())
|
||||
{
|
||||
m_Colour = c;
|
||||
m_ImageCtrl->SetColour(m_Colour);
|
||||
|
@ -70,7 +70,7 @@ void FieldEditCtrl_Colour::StartEdit(wxWindow* parent, wxRect WXUNUSED(rect), lo
|
||||
|
||||
wxColour newColour = wxGetColourFromUser(parent, oldColour);
|
||||
|
||||
if (newColour.Ok()) // test whether the user cancelled the selection
|
||||
if (newColour.IsOk()) // test whether the user cancelled the selection
|
||||
{
|
||||
wxString newColourStr = wxString::Format(_T("%d %d %d"), newColour.Red(), newColour.Green(), newColour.Blue());
|
||||
AtlasWindowCommandProc::GetFromParentFrame(editCtrl)->Submit(
|
||||
|
Loading…
Reference in New Issue
Block a user