diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index e3d6c9a276..bb77b0cbbc 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -780,7 +780,7 @@ public: StyleSetForeground(wxSTC_H_DOUBLESTRING, *wxBLACK); StyleSetForeground(wxSTC_H_SINGLESTRING, *wxBLACK); StyleSetForeground(wxSTC_H_OTHER, *wxBLUE); - StyleSetForeground(wxSTC_H_COMMENT, wxTheColourDatabase->Find("GREY")); + StyleSetForeground(wxSTC_H_COMMENT, wxColour("GREY")); StyleSetForeground(wxSTC_H_ENTITY, *wxRED); StyleSetBold(wxSTC_H_ENTITY, true); StyleSetForeground(wxSTC_H_TAGEND, *wxBLUE);