]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/colordlg.cpp
Dont't finish any editing if there is no control
[wxWidgets.git] / src / msw / colordlg.cpp
index d95667925a9ed31fd9de7f46b414de94185492f8..7a52b05e9da372469b18ae22985c7f15f66030a1 100644 (file)
@@ -161,7 +161,7 @@ int wxColourDialog::ShowModal()
     // transfer the values chosen by user back into m_colourData
     for ( i = 0; i < WXSIZEOF(custColours); i++ )
     {
     // transfer the values chosen by user back into m_colourData
     for ( i = 0; i < WXSIZEOF(custColours); i++ )
     {
-      wxRGBToColour(m_colourData.GetCustomColour(i), custColours[i]);
+      wxRGBToColour(m_colourData.m_custColours[i], custColours[i]);
     }
 
     wxRGBToColour(m_colourData.GetColour(), chooseColorStruct.rgbResult);
     }
 
     wxRGBToColour(m_colourData.GetColour(), chooseColorStruct.rgbResult);