]> git.saurik.com Git - wxWidgets.git/commitdiff
id are generated as in wxMSW if the default value (-1) is given to
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Dec 1998 19:32:16 +0000 (19:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Dec 1998 19:32:16 +0000 (19:32 +0000)
wxWindow::Create()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index 9dc17c0291c202d77fe18046276d520438e697a4..883488a824daedcaaa1d1ed701931fbbff33a442 100644 (file)
@@ -1197,7 +1197,7 @@ void wxWindow::PreCreation( wxWindow *parent, wxWindowID id,
   
     m_eventHandler = this;
   
-    m_windowId = id;
+    m_windowId = id == -1 ? wxNewId() : id;
   
     m_sizeSet = FALSE;
   
index 9dc17c0291c202d77fe18046276d520438e697a4..883488a824daedcaaa1d1ed701931fbbff33a442 100644 (file)
@@ -1197,7 +1197,7 @@ void wxWindow::PreCreation( wxWindow *parent, wxWindowID id,
   
     m_eventHandler = this;
   
-    m_windowId = id;
+    m_windowId = id == -1 ? wxNewId() : id;
   
     m_sizeSet = FALSE;