else
{
m_originalPoints = the_points;
-
+
// Duplicate the list of points
m_points = new wxList;
-
+
wxObjectList::compatibility_iterator node = the_points->GetFirst();
while (node)
{
m_actualPenObject = NULL;
}
-wxShapeRegion::wxShapeRegion(wxShapeRegion& region)
+wxShapeRegion::wxShapeRegion(wxShapeRegion& region):wxObject()
{
m_regionText = region.m_regionText;
m_regionName = region.m_regionName;
while (node)
{
wxShapeTextLine *line = (wxShapeTextLine *)node->GetData();
- wxNode *next = node->GetNext();
+ wxObjectList::compatibility_iterator next = node->GetNext();
delete line;
- delete node;
+ m_formattedText.Erase(node);
node = next;
}
}