]> git.saurik.com Git - wxWidgets.git/commitdiff
GetPixel isn't returning RGBColor anymore, so change call
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 3 Apr 2008 11:47:44 +0000 (11:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 3 Apr 2008 11:47:44 +0000 (11:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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)) ;