]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/colordlg.cpp
fixing the build for wxMAC_USE_COCOA=1
[wxWidgets.git] / src / mac / carbon / colordlg.cpp
index bdb49c62c9d420e0ec7695ba7993a9ee2a4bea36..377276d0c4e42631522d236234ddc9187d722817 100644 (file)
@@ -47,8 +47,9 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
 
 int wxColourDialog::ShowModal()
 {
-    RGBColor currentColor = *((RGBColor*)m_colourData.m_dataColour.GetPixel()) ;
-
+    RGBColor currentColor ;
+    
+    m_colourData.m_dataColour.GetRGBColor( currentColor );
     NColorPickerInfo info;
     OSStatus err ;
     memset(&info, 0, sizeof(info)) ;