// Created: 2008-06-19
// Id: $Id$
// Copyright: (c) 2008 Marcin Wojdyr
-// License: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
void StatBmpWidgetsPage::RecreateWidget()
{
- delete m_statbmp;
- m_statbmp = NULL;
+ wxDELETE(m_statbmp);
wxString filepath = m_filepicker->GetPath();
if ( filepath.empty() )
return;
wxImage image(filepath);
- if (! image.Ok() )
+ if (! image.IsOk() )
{
wxLogMessage("Reading image from file '%s' failed.", filepath.c_str());
return;