Selection marking seems fine now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-05-09 17:28:58 +00:00
parent 18d084cf1f
commit 404d805e79
4 changed files with 125 additions and 57 deletions

View File

@@ -158,12 +158,13 @@ wxLayoutExportStatus::wxLayoutExportStatus(wxLayoutList *list,
m_fromPos = fromPos;
m_toPos = toPos;
if(m_fromPos != wxLayoutExportNoPosition)
if(m_fromPos.x != -1)
{
while(m_line && (*m_line)->GetLineNumber() != m_fromPos.y)
m_line->GetNextLine();
while(m_line && m_line->GetLineNumber() != m_fromPos.y)
m_line = m_line->GetNextLine();
wxASSERT(m_line);
m_iterator = (**i).FindObject(fromPos.x);
CoordType dummy;
m_iterator = m_line->FindObject(fromPos.x, &dummy);
}
}