X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17991ec0347994008244c136984fc6faffc4a33a..728f972bcef8d6b01f5f67cb77060d23098d8877:/wxPython/contrib/activex/wxie/wxactivex.cpp diff --git a/wxPython/contrib/activex/wxie/wxactivex.cpp b/wxPython/contrib/activex/wxie/wxactivex.cpp index 39b178e441..77d372d993 100644 --- a/wxPython/contrib/activex/wxie/wxactivex.cpp +++ b/wxPython/contrib/activex/wxie/wxactivex.cpp @@ -1172,7 +1172,8 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink) // Get properties // See bug #1280715 in the wxActiveX SF project - for (int i = 0; i < ta->cVars; i++) { + int i; + for (i = 0; i < ta->cVars; i++) { VARDESC FAR *vd = NULL; typeInfo->GetVarDesc(i, &vd) ; @@ -1197,7 +1198,7 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink) } // Get Function Names - for (int i = 0; i < ta->cFuncs; i++) + for (i = 0; i < ta->cFuncs; i++) { FUNCDESC FAR *fd = NULL; @@ -1705,7 +1706,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event) { wxLogTrace(wxT(""),wxT("repainting activex win")); wxPaintDC dc(this); - dc.BeginDrawing(); int w, h; GetSize(&w, &h); RECT posRect; @@ -1730,7 +1730,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event) dc.DrawRectangle(0, 0, w, h); dc.SetBrush(wxNullBrush); } - dc.EndDrawing(); }