]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/graphics.h
fix memory leak; allocate the DC before SetFont() is called on the status bar
[wxWidgets.git] / include / wx / graphics.h
index aba3af1aa40d8b09d608414e3b497cec3c6c915c..cd7ed7fcf084aae9189478ba716b4b06b01e5764 100644 (file)
@@ -498,7 +498,7 @@ protected:
     wxGraphicsFont m_font;
     wxRasterOperationMode m_logicalFunction;
 
-private:
+protected:
     // implementations of overloaded public functions: we use different names
     // for them to avoid the virtual function hiding problems in the derived
     // classes
@@ -512,7 +512,7 @@ private:
                                          wxDouble angle,
                                          const wxGraphicsBrush& backgroundBrush);
 
-    DECLARE_NO_COPY_CLASS(wxGraphicsContext)
+    wxDECLARE_NO_COPY_CLASS(wxGraphicsContext);
     DECLARE_ABSTRACT_CLASS(wxGraphicsContext)
 };
 
@@ -620,7 +620,7 @@ public:
 
 
 private:
-    DECLARE_NO_COPY_CLASS(wxGraphicsRenderer)
+    wxDECLARE_NO_COPY_CLASS(wxGraphicsRenderer);
     DECLARE_ABSTRACT_CLASS(wxGraphicsRenderer)
 };