if (pt.y > lastY)
{
- node2 = NULL;
- node = NULL;
+ node2 = wxRichTextLineList::compatibility_iterator();
+ node = wxRichTextObjectList::compatibility_iterator();
}
else if (range.GetStart() > GetPosition() && pt.y >= firstVisiblePt.y)
{
if (pt.y > lastY) // going past the end of the window, no more info
{
- node2 = NULL;
- node = NULL;
+ node2 = wxRichTextLineList::compatibility_iterator();
+ node = wxRichTextObjectList::compatibility_iterator();
}
else
{
foundEnd = true;
lastY = pt.y - firstVisiblePt.y;
- node2 = NULL;
- node = NULL;
+ node2 = wxRichTextLineList::compatibility_iterator();
+ node = wxRichTextObjectList::compatibility_iterator();
+
break;
}
}