mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Return new wxBitmap for GetDisabledBitmap()
This issue was detected by the clang64 compiler; but, it likely needs fixed for all compilers.
This commit is contained in:
@@ -136,11 +136,12 @@ def run():
|
||||
|
||||
|
||||
c.find('GetDisabledBitmap').type = 'const wxBitmap*'
|
||||
c.find('GetDisabledBitmap').transferBack = True # Python takes ownership of the return value
|
||||
c.find('GetDisabledBitmap').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
return &self->GetDisabledBitmap();
|
||||
return new wxBitmap(self->GetDisabledBitmap());
|
||||
#else
|
||||
return &wxNullBitmap;
|
||||
return new wxBitmap(wxNullBitmap);
|
||||
#endif
|
||||
""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user