X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..f89919f5e9c80195007ebc3480f3fe4c133d5505:/src/generic/paletteg.cpp?ds=sidebyside diff --git a/src/generic/paletteg.cpp b/src/generic/paletteg.cpp index 741a78893a..ac8cd8a83b 100644 --- a/src/generic/paletteg.cpp +++ b/src/generic/paletteg.cpp @@ -70,19 +70,17 @@ wxPalette::~wxPalette() { } -bool wxPalette::operator == (const wxPalette& palette) const +bool wxPalette::IsOk() const { - return m_refData == palette.m_refData; -} - -bool wxPalette::operator != (const wxPalette& palette) const -{ - return m_refData != palette.m_refData; + return (m_refData != NULL); } -bool wxPalette::Ok(void) const +int wxPalette::GetColoursCount() const { - return (m_refData != NULL); + if (m_refData) + return M_PALETTEDATA->m_count; + + return 0; } bool wxPalette::Create(int n,