X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..d7b995a4975f8d79a83029110edd8630751d55ae:/src/mac/carbon/colordlg.cpp diff --git a/src/mac/carbon/colordlg.cpp b/src/mac/carbon/colordlg.cpp index 134e40f445..6ca0354761 100644 --- a/src/mac/carbon/colordlg.cpp +++ b/src/mac/carbon/colordlg.cpp @@ -15,6 +15,10 @@ #endif #include "wx/mac/colordlg.h" +#include "wx/fontdlg.h" + + +#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX #if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog) @@ -51,13 +55,13 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data) int wxColourDialog::ShowModal() { Point where ; - RGBColor currentColor = *((RGBColor*)m_colourData.dataColour.GetPixel()) , newColor ; + RGBColor currentColor = *((RGBColor*)m_colourData.m_dataColour.GetPixel()) , newColor ; where.h = where.v = -1; if (GetColor( where, "\pSelect a new palette color.", ¤tColor, &newColor )) { - m_colourData.dataColour.Set( (WXCOLORREF*) &newColor ) ; + m_colourData.m_dataColour.Set( (WXCOLORREF*) &newColor ) ; return wxID_OK; } else @@ -68,3 +72,4 @@ int wxColourDialog::ShowModal() return wxID_CANCEL; } +#endif