]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/windowid.h
Implement monitoring of file descriptors in wxMotif event loop.
[wxWidgets.git] / include / wx / windowid.h
index 4b2e3e171c42b5ea8ddac2e92ca361fd4e8fdde4..2360085c7f42ce22a441cab5879a21d3eed10c0f 100644 (file)
@@ -43,7 +43,7 @@ public:
 
     wxWindowIDRef(long id)
     {
-        Init(id);
+        Init(wxWindowID(id));
     }
 
     wxWindowIDRef(const wxWindowIDRef& id)
@@ -66,13 +66,14 @@ public:
 
     wxWindowIDRef& operator=(long id)
     {
-        Assign(id);
+        Assign(wxWindowID(id));
         return *this;
     }
 
     wxWindowIDRef& operator=(const wxWindowIDRef& id)
     {
-        Assign(id.m_id);
+        if (&id != this)
+            Assign(id.m_id);
         return *this;
     }