Ensure that the member is always initialized as calling GetAuthNeeded() for a
default-constructed button would access a non-initialized variable before.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67058
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void Init()
{
m_imageData = NULL;
+ m_authNeeded = false;
}
// Switches button into owner-drawn mode: this is used if we need to draw
const wxValidator& validator,
const wxString& name)
{
- m_authNeeded = false;
-
wxString label(lbl);
if (label.empty() && wxIsStockID(id))
{