From ed6e7f8cfeb41348e13032c5a323d96bcfb22c6d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 3 Apr 2008 11:47:44 +0000 Subject: [PATCH] GetPixel isn't returning RGBColor anymore, so change call git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/colordlg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/colordlg.cpp b/src/mac/carbon/colordlg.cpp index bdb49c62c9..377276d0c4 100644 --- a/src/mac/carbon/colordlg.cpp +++ b/src/mac/carbon/colordlg.cpp @@ -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)) ;