update g_isPainting in wxPaintEvent copy ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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()
|
~wxPaintEvent()
|
||||||
{
|
{
|
||||||
g_isPainting--;
|
g_isPainting--;
|
||||||
|
Reference in New Issue
Block a user