Fix warning.
authorRobert Roebling <robert@roebling.de>
Sat, 21 Oct 2006 17:22:07 +0000 (17:22 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 21 Oct 2006 17:22:07 +0000 (17:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dcgraph.h
src/common/graphcmn.cpp

index 894e33ea56d58ba9eb4f920930632972c5287af3..9d1e4d7fb9518e8ec04af4b263456f24b548c4f4 100755 (executable)
@@ -86,8 +86,8 @@ public:
     virtual void ComputeScaleAndOrigin();
 
     wxGraphicsContext* GetGraphicContext() { return m_graphicContext; }
-       virtual void SetGraphicsContext( wxGraphicsContext* ctx )
-               { delete m_graphicContext; m_graphicContext = ctx; }
+       virtual void SetGraphicsContext( wxGraphicsContext* ctx );
+    
 protected:
     // the true implementations
     virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
index 0b9c6be864d7ea78ddc287e110c4cdb0cbdd0c1b..b66531f91029840b0da1884fa00662ee59c4a8cb 100644 (file)
@@ -274,6 +274,11 @@ wxGCDC::wxGCDC()
     Init();
 }
 
+void wxGCDC::SetGraphicsContext( wxGraphicsContext* ctx )
+{ 
+    delete m_graphicContext;
+    m_graphicContext = ctx;
+}
 
 wxGCDC::wxGCDC(const wxWindowDC& dc)
 {