Fixed OOR related problem in OGL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9df61a29d2
commit
856e03b753
@ -915,6 +915,21 @@ SWIGEXPORT(void) initoglc() {
|
|||||||
wxClassInfo::CleanUpClasses();
|
wxClassInfo::CleanUpClasses();
|
||||||
wxClassInfo::InitializeClasses();
|
wxClassInfo::InitializeClasses();
|
||||||
|
|
||||||
|
wxPyPtrTypeMap_Add("wxControlPoint", "wxPyControlPoint");
|
||||||
|
wxPyPtrTypeMap_Add("wxShapeCanvas", "wxPyShapeCanvas");
|
||||||
|
wxPyPtrTypeMap_Add("wxShapeEvtHandler", "wxPyShapeEvtHandler");
|
||||||
|
wxPyPtrTypeMap_Add("wxShape", "wxPyShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxRectangleShape", "wxPyRectangleShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxDrawnShape", "wxPyDrawnShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxCompositeShape", "wxPyCompositeShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxDividedShape", "wxPyDividedShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxDivisionShape", "wxPyDivisionShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxEllipseShape", "wxPyEllipseShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxCircleShape", "wxPyCircleShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxLineShape", "wxPyLineShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxPolygonShape", "wxPyPolygonShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxTextShape", "wxPyTextShape");
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; _swig_mapping[i].n1; i++)
|
for (i = 0; _swig_mapping[i].n1; i++)
|
||||||
|
@ -250,6 +250,21 @@ extern "C" SWIGEXPORT(void) initoglcanvasc();
|
|||||||
wxClassInfo::CleanUpClasses();
|
wxClassInfo::CleanUpClasses();
|
||||||
wxClassInfo::InitializeClasses();
|
wxClassInfo::InitializeClasses();
|
||||||
|
|
||||||
|
wxPyPtrTypeMap_Add("wxControlPoint", "wxPyControlPoint");
|
||||||
|
wxPyPtrTypeMap_Add("wxShapeCanvas", "wxPyShapeCanvas");
|
||||||
|
wxPyPtrTypeMap_Add("wxShapeEvtHandler", "wxPyShapeEvtHandler");
|
||||||
|
wxPyPtrTypeMap_Add("wxShape", "wxPyShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxRectangleShape", "wxPyRectangleShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxDrawnShape", "wxPyDrawnShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxCompositeShape", "wxPyCompositeShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxDividedShape", "wxPyDividedShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxDivisionShape", "wxPyDivisionShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxEllipseShape", "wxPyEllipseShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxCircleShape", "wxPyCircleShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxLineShape", "wxPyLineShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxPolygonShape", "wxPyPolygonShape");
|
||||||
|
wxPyPtrTypeMap_Add("wxTextShape", "wxPyTextShape");
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -193,6 +193,7 @@ class TestWindow(wxShapeCanvas):
|
|||||||
if shape.GetParent() == None:
|
if shape.GetParent() == None:
|
||||||
shape.SetCanvas(None)
|
shape.SetCanvas(None)
|
||||||
shape.Destroy()
|
shape.Destroy()
|
||||||
|
self.diagram.Destroy()
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
@ -317,11 +317,11 @@ SWIG_GetPtr(char *c, void **ptr, char *t)
|
|||||||
if (*c != '_') {
|
if (*c != '_') {
|
||||||
*ptr = (void *) 0;
|
*ptr = (void *) 0;
|
||||||
if (strcmp(c,"NULL") == 0) return (char *) 0;
|
if (strcmp(c,"NULL") == 0) return (char *) 0;
|
||||||
else c;
|
else return c;
|
||||||
}
|
}
|
||||||
c++;
|
c++;
|
||||||
/* Extract hex value from pointer */
|
/* Extract hex value from pointer */
|
||||||
while (d = *c) {
|
while ((d = *c) != 0) {
|
||||||
if ((d >= '0') && (d <= '9'))
|
if ((d >= '0') && (d <= '9'))
|
||||||
p = (p << 4) + (d - '0');
|
p = (p << 4) + (d - '0');
|
||||||
else if ((d >= 'a') && (d <= 'f'))
|
else if ((d >= 'a') && (d <= 'f'))
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Loading…
Reference in New Issue
Block a user