]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/graphcmn.cpp
fixing osx_cocoa
[wxWidgets.git] / src / common / graphcmn.cpp
index 34dae699a56d245d070d5df0906ca46225871eb0..8536a68762f3afbe930c6573bea7f41b34e1179c 100644 (file)
@@ -665,9 +665,7 @@ wxGraphicsContext::DoDrawFilledText(const wxString &str,
     // to make sure our 'OffsetToPixelBoundaries' doesn't move the fill shape
     SetPen( wxNullGraphicsPen );
 
-    wxGraphicsPath path = CreatePath();
-    path.AddRectangle( x , y, width, height );
-    FillPath( path );
+    DrawRectangle(x , y, width, height);
 
     DrawText( str, x ,y);
     SetBrush( formerBrush );