From ac866cad12bcae16b9da23c1bc93daeb45ecd527 Mon Sep 17 00:00:00 2001
From: Willian Padovani Germano <wpgermano@gmail.com>
Date: Thu, 11 Nov 2004 17:59:36 +0000
Subject: [PATCH] BPython: - Stephan Gartner reported a crash with Scripts Help
 Browser script found while porting blender to Linux/x86_64, related to bugs
 in Blender.Window.Theme module:     two object types were being defined with
 wrong sizes.  My mistake, when I wrote that code I copied/pasted those
 portions around and didn't check properly.  Should be fixed now.  Thanks
 Stephan.

---
 source/blender/python/api2_2x/windowTheme.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/blender/python/api2_2x/windowTheme.c b/source/blender/python/api2_2x/windowTheme.c
index 0cb3c08cb10..4464fb83b96 100644
--- a/source/blender/python/api2_2x/windowTheme.c
+++ b/source/blender/python/api2_2x/windowTheme.c
@@ -101,7 +101,7 @@ static PyMethodDef BPy_ThemeSpace_methods[] = {
 PyTypeObject ThemeSpace_Type = {
 	PyObject_HEAD_INIT( NULL ) 0,	/* ob_size */
 	"Blender Space Theme",	/* tp_name */
-	sizeof( BPy_Theme ),	/* tp_basicsize */
+	sizeof( BPy_ThemeSpace ),	/* tp_basicsize */
 	0,			/* tp_itemsize */
 	/* methods */
 	( destructor ) ThemeSpace_dealloc,	/* tp_dealloc */
@@ -277,7 +277,7 @@ static PyMethodDef BPy_ThemeUI_methods[] = {
 PyTypeObject ThemeUI_Type = {
 	PyObject_HEAD_INIT( NULL ) 0,	/* ob_size */
 	"Blender UI Theme",	/* tp_name */
-	sizeof( BPy_Theme ),	/* tp_basicsize */
+	sizeof( BPy_ThemeUI ),	/* tp_basicsize */
 	0,			/* tp_itemsize */
 	/* methods */
 	( destructor ) ThemeUI_dealloc,	/* tp_dealloc */
-- 
GitLab