]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/palette.cpp
Fixed bug: wxPGProperty::SetName() crashed if it was called before property was added...
[wxWidgets.git] / src / os2 / palette.cpp
index a579c53803122338fef80136aee09b46b0b5000f..55f41907bcd4c06726f00fadec061c70c0f2bec3 100644 (file)
@@ -104,6 +104,16 @@ bool wxPalette::Create( int n,
     return true;
 } // end of wxPalette::Create
 
+wxGDIRefData *wxPalette::CreateGDIRefData() const
+{
+    return new wxPaletteRefData;
+}
+
+wxGDIRefData *wxPalette::CloneGDIRefData(const wxGDIRefData *data) const
+{
+    return new wxPaletteRefData(*static_cast<const wxPaletteRefData *>(data));
+}
+
 int wxPalette::GetPixel( unsigned char cRed,
                          unsigned char cGreen,
                          unsigned char cBlue) const