]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
don't crash if one of GetAllCommands() parameters is NULL (coverity checker CID 11)
[wxWidgets.git] / src / stc / PlatWX.cpp
index 06497eb0dde6872351a1746f93a14ffebb83d4ab..81f172cd71c0c449f534dd379258fc7b0b51aa5b 100644 (file)
@@ -6,12 +6,12 @@
 
 #include <ctype.h>
 
-#include <wx/wx.h>
-#include <wx/encconv.h>
-#include <wx/listctrl.h>
-#include <wx/mstream.h>
-#include <wx/image.h>
-#include <wx/imaglist.h>
+#include "wx/wx.h"
+#include "wx/encconv.h"
+#include "wx/listctrl.h"
+#include "wx/mstream.h"
+#include "wx/image.h"
+#include "wx/imaglist.h"
 
 #include "Platform.h"
 #include "PlatWX.h"
@@ -601,7 +601,7 @@ void Window::SetCursor(Cursor curs) {
 
 
 void Window::SetTitle(const char *s) {
-    GETWIN(id)->SetTitle(stc2wx(s));
+    GETWIN(id)->SetLabel(stc2wx(s));
 }