]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
Font (possible) fix
[wxWidgets.git] / src / stc / PlatWX.cpp
index fabec08d8372982dbb9b63a4a8ef68739dfd0d29..07566a804016ae1d4464453fee68375483ce98c7 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"
@@ -592,7 +592,11 @@ void Window::SetCursor(Cursor curs) {
 #else
        wxCursor wc = wxCursor(cursorId) ;
 #endif
-       GETWIN(id)->SetCursor(wc);
+       if(curs != cursorLast)
+       {
+           GETWIN(id)->SetCursor(wc);
+           cursorLast = curs;
+       }
 }