]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobox.cpp
Added Set/GetQuickBestSize
[wxWidgets.git] / src / motif / radiobox.cpp
index a341e977a8eb8ad50acba30538279f33c5b2896b..09b06715d1f81937d6003d77006dfdc1ca395db1 100644 (file)
 #endif
 
 #include "wx/radiobox.h"
-#include "wx/utils.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/utils.h"
+#endif
+
 #include "wx/arrstr.h"
 
 #ifdef __VMS__
@@ -347,7 +351,8 @@ void wxRadioBox::ChangeBackgroundColour()
 {
     wxWindow::ChangeBackgroundColour();
 
-    int selectPixel = wxBLACK->AllocColour(XtDisplay((Widget)m_mainWidget));
+    wxColour colour = *wxBLACK;
+    int selectPixel = colour.AllocColour(XtDisplay((Widget)m_mainWidget));
 
     for (unsigned int i = 0; i < m_noItems; i++)
     {