diff options
author | Dan Gudmundsson <dgud@erlang.org> | 2022-04-20 11:01:24 +0200 |
---|---|---|
committer | Dan Gudmundsson <dgud@erlang.org> | 2022-04-20 11:01:24 +0200 |
commit | 023be12263c2a91dadd03342bd4b3e3b77d1818b (patch) | |
tree | 041690986c1d5cebd7922a22cb584bf66c874fb3 /lib/wx | |
parent | f00827e60ff1f43aae30ac596f342d45d4d3860e (diff) | |
download | erlang-023be12263c2a91dadd03342bd4b3e3b77d1818b.tar.gz |
wx: Fix build problems with wxWidgets-3.1.6
Update pushed to wx_api_branch on git@github.com:erlang/wxWidgets.git
and code re-generated.
Diffstat (limited to 'lib/wx')
-rw-r--r-- | lib/wx/c_src/gen/wxe_wrapper_5.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wx/c_src/gen/wxe_wrapper_5.cpp b/lib/wx/c_src/gen/wxe_wrapper_5.cpp index 43bda73ded..d9d7248a84 100644 --- a/lib/wx/c_src/gen/wxe_wrapper_5.cpp +++ b/lib/wx/c_src/gen/wxe_wrapper_5.cpp @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2021. All Rights Reserved. + * Copyright Ericsson AB 2008-2022. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2162,7 +2162,7 @@ void wxMenuItem_GetBitmap(WxeApp *app, wxeMemEnv *memenv, wxeCommand& Ecmd) wxMenuItem *This; This = (wxMenuItem *) memenv->getPtr(env, argv[0], "This"); if(!This) throw wxe_badarg("This"); - const wxBitmap * Result = &This->GetBitmap(); + wxBitmap * Result = new wxBitmap(This->GetBitmap()); app->newPtr((void *) Result,3, memenv);; wxeReturn rt = wxeReturn(memenv, Ecmd.caller, true); rt.send( rt.make_ref(app->getRef((void *)Result,memenv), "wxBitmap")); |