]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/libpy.c
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / src / libpy.c
index 1116e677df78433c162c5240281e31e109a434c8..6fe6c00bfb7be9b086ccb86b3c9f59c5590e0ddf 100644 (file)
@@ -5,11 +5,11 @@
  * Contains variable linking and pointer type-checking code.
  ************************************************************************/
 
+#include "Python.h"
+
 #include <string.h>
 #include <stdlib.h>
 
-#include "Python.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -402,6 +402,7 @@ SWIGSTATICRUNTIME(char *)
 SWIG_GetPtrObj(PyObject *obj, void **ptr, char *type) {
   PyObject *sobj = obj;
   char     *str;
+
   if (!PyString_Check(obj)) {
       if (!PyInstance_Check(obj) || !(sobj = PyObject_GetAttrString(obj,"this")))
           return "";