Index: ps/trunk/source/tools/atlas/AtlasUI/CustomControls/EditableListCtrl/EditableListCtrl.cpp =================================================================== --- ps/trunk/source/tools/atlas/AtlasUI/CustomControls/EditableListCtrl/EditableListCtrl.cpp +++ ps/trunk/source/tools/atlas/AtlasUI/CustomControls/EditableListCtrl/EditableListCtrl.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Wildfire Games. +/* Copyright (C) 2019 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -76,7 +76,8 @@ wxPoint pt = event.GetPosition(); int col = GetColumnAtPosition(pt); - wxCHECK2(col >= 0 && col < (int)m_ColumnTypes.size(), return); + if (col < 0 || col >= static_cast(m_ColumnTypes.size())) + return; int flags; long row = HitTest(pt, flags); Index: ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.cpp =================================================================== --- ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.cpp +++ ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2019 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -51,7 +51,7 @@ wxBoxSizer* buttonSizer = new wxBoxSizer(wxHORIZONTAL); - mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Align(wxALIGN_RIGHT).Border(wxALL, 5)); + mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Border(wxALL, 5)); buttonSizer->Add(new wxButton(this, wxID_OK, _("OK")), wxSizerFlags().Border(wxRIGHT, 25)); buttonSizer->Add(new wxButton(this, wxID_CANCEL, _("Cancel")), wxSizerFlags().Border(wxRIGHT, 5));