Applied fix for wxCreateTopLevelRealizedWidget crash.
Patch #1231717 by Johan van Zyl. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#pragma message disable nosimpint
|
||||
#endif
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/Label.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xresource.h>
|
||||
@@ -307,9 +306,9 @@ WXWidget wxCreateTopLevelWidget( WXDisplay* display )
|
||||
|
||||
WXWidget wxCreateTopLevelRealizedWidget( WXDisplay* display )
|
||||
{
|
||||
Widget rTlw = XtVaCreateWidget( "dummy_widget", xmLabelWidgetClass,
|
||||
Widget rTlw = XtVaCreateWidget( "dummy_widget", topLevelShellWidgetClass,
|
||||
(Widget)wxTheApp->GetTopLevelWidget(),
|
||||
NULL);
|
||||
NULL, 0 );
|
||||
XtSetMappedWhenManaged( rTlw, False );
|
||||
XtRealizeWidget( rTlw );
|
||||
|
||||
|
Reference in New Issue
Block a user