]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove calls to dc.BeginDrawing and dc.EndDrawing
authorRobin Dunn <robin@alldunn.com>
Tue, 7 Feb 2006 17:28:12 +0000 (17:28 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 7 Feb 2006 17:28:12 +0000 (17:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/contrib/activex/wxie/wxactivex.cpp

index 2e13d8d5de70516515faa331db7cf4eeb190bfad..77d372d9937b86158cd923b12834926c681bf28a 100644 (file)
@@ -1706,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;
@@ -1731,7 +1730,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event)
         dc.DrawRectangle(0, 0, w, h);
         dc.SetBrush(wxNullBrush);
     }
-    dc.EndDrawing();
 }