]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/graphcmn.cpp
there is no need to convert wxArrayString to wxString[] explicitly any more, wx contr...
[wxWidgets.git] / src / common / graphcmn.cpp
index b66531f91029840b0da1884fa00662ee59c4a8cb..f921072da7f4ee7e07fb183468f8a1f6a607d1be 100644 (file)
@@ -48,6 +48,8 @@ static inline double DegToRad(double deg)
 
 //-----------------------------------------------------------------------------
 
+IMPLEMENT_ABSTRACT_CLASS(wxGraphicsPath, wxObject)
+
 wxPoint2DDouble wxGraphicsPath::GetCurrentPoint()
 {
     wxDouble x,y;
@@ -150,6 +152,8 @@ void wxGraphicsPath::AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDo
 // wxGraphicsContext Convenience Methods
 //-----------------------------------------------------------------------------
 
+IMPLEMENT_ABSTRACT_CLASS(wxGraphicsContext, wxObject)
+
 void wxGraphicsContext::DrawPath( const wxGraphicsPath *path, int fillStyle )
 {
     FillPath( path , fillStyle );
@@ -1089,7 +1093,7 @@ bool wxGCDC::DoBlit(
     wxCoord wwdest = LogicalToDeviceXRel(width);
     wxCoord hhdest = LogicalToDeviceYRel(height);
 
-    wxMemoryDC* memdc = dynamic_cast<wxMemoryDC*>(source);
+    wxMemoryDC* memdc = wxDynamicCast(source,wxMemoryDC);
     if ( memdc && logical_func == wxCOPY )
     {
         wxBitmap blit = memdc->GetSelectedBitmap();