Removed deprecation warnings in OGL and Gizmos

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-03-25 06:58:05 +00:00
parent 1e4a197e4c
commit b9ac87bc5c
16 changed files with 1008 additions and 1008 deletions

View File

@@ -397,10 +397,10 @@ wxShape *wxShapeCanvas::FindShape(double x, double y, int *attachment, wxClassIn
// the other objects
// (b) to find the control points FIRST if they exist
wxNode *current = GetDiagram()->GetShapeList()->Last();
wxNode *current = GetDiagram()->GetShapeList()->GetLast();
while (current)
{
wxShape *object = (wxShape *)current->Data();
wxShape *object = (wxShape *)current->GetData();
double dist;
int temp_attachment;
@@ -430,13 +430,13 @@ wxShape *wxShapeCanvas::FindShape(double x, double y, int *attachment, wxClassIn
}
}
if (current)
current = current->Previous();
current = current->GetPrevious();
}
current = GetDiagram()->GetShapeList()->Last();
current = GetDiagram()->GetShapeList()->GetLast();
while (current)
{
wxShape *object = (wxShape *)current->Data();
wxShape *object = (wxShape *)current->GetData();
double dist;
int temp_attachment;
@@ -461,7 +461,7 @@ wxShape *wxShapeCanvas::FindShape(double x, double y, int *attachment, wxClassIn
}
}
if (current)
current = current->Previous();
current = current->GetPrevious();
}
*attachment = nearest_attachment;