Fixed the keyboard selection handling (Please remember to maintain m_Selecting

when Starting/Ending/Discarding selection!!!).
Fixed a LineBreak() related bug.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-06-14 20:02:01 +00:00
parent ef609210f1
commit daa69da89e
3 changed files with 30 additions and 20 deletions

View File

@@ -2048,7 +2048,10 @@ wxLayoutList::LineBreak(void)
height = m_CursorLine->GetHeight();
m_CursorLine = m_CursorLine->Break(m_CursorPos.x, this);
m_CursorPos.y++;
if(m_CursorLine->GetPreviousLine() == NULL)
m_FirstLine = m_CursorLine;
if(m_CursorPos.x > 0)
m_CursorPos.y++;
m_CursorPos.x = 0;
// The following code will produce a height which is guaranteed to