]> git.saurik.com Git - wxWidgets.git/commitdiff
update g_isPainting in wxPaintEvent copy ctor
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 20 Oct 2004 22:10:35 +0000 (22:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 20 Oct 2004 22:10:35 +0000 (22:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h

index 4aabe99a4078fec4f475cad28c626b62933ae557..b08acfa2a73ef38d705da6f8e2365e5dee6a33fc 100644 (file)
@@ -1089,7 +1089,15 @@ public:
 #endif // debug
     }
 
 #endif // debug
     }
 
+    // default copy ctor and dtor are normally fine, we only need them to keep
+    // g_isPainting updated in debug build
 #if defined(__WXDEBUG__) && (defined(__WXMSW__) || defined(__WXPM__))
 #if defined(__WXDEBUG__) && (defined(__WXMSW__) || defined(__WXPM__))
+    wxPaintEvent(const wxPaintEvent& event)
+            : wxEvent(event)
+    {
+        g_isPainting++;
+    }
+
     ~wxPaintEvent()
     {
         g_isPainting--;
     ~wxPaintEvent()
     {
         g_isPainting--;