Declare wxBitmap in smaller scope in wxWizard DPI change handler
No real changes, just avoid creating wxBitmap unnecessarily and only do it if we're really going to use it.
This commit is contained in:
parent
c3359c17b7
commit
1da8377f17
@ -904,9 +904,9 @@ void wxWizard::SetBitmap(const wxBitmapBundle& bitmap)
|
||||
|
||||
void wxWizard::WXHandleDPIChanged(wxDPIChangedEvent& event)
|
||||
{
|
||||
wxBitmap bmp;
|
||||
if ( m_statbmp )
|
||||
{
|
||||
wxBitmap bmp;
|
||||
if ( m_page )
|
||||
bmp = m_page->GetBitmap();
|
||||
if ( !bmp.IsOk() )
|
||||
|
Loading…
Reference in New Issue
Block a user