]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
fix memory leak in wxScreenDC, fixes #13249
[wxWidgets.git] / src / stc / stc.cpp
index ca1231db4d93c84ae960d2382d5c2ce2fa7d37a0..b9f6da5e3e9bc6db666c2fab4cb6d565a6678b1b 100644 (file)
@@ -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);
 }