X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c1f960facd309385710af076b1f579aad9a28ef..94e0018723919fe2ca2f5b5f0a42804c16dbf3a1:/src/stc/stc.cpp

diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp
index b0a98e41ee..c31f350f55 100644
--- a/src/stc/stc.cpp
+++ b/src/stc/stc.cpp
@@ -527,9 +527,9 @@ void wxStyledTextCtrl::MarkerDefine(int markerNumber, int markerSymbol,
                 const wxColour& background) {
 
                 SendMsg(2040, markerNumber, markerSymbol);
-                if (foreground.Ok())
+                if (foreground.IsOk())
                     MarkerSetForeground(markerNumber, foreground);
-                if (background.Ok())
+                if (background.IsOk())
                     MarkerSetBackground(markerNumber, background);
 }