Fixed inability to select no superscript and no subscript in wxRichTextCtrl's
formatting dialog (fixes bug #10121) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -913,12 +913,11 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
||||
|
||||
long newPos = m_caretPosition;
|
||||
|
||||
DeleteSelectedContent(& newPos);
|
||||
bool processed = DeleteSelectedContent(& newPos);
|
||||
|
||||
// Submit range in character positions, which are greater than caret positions,
|
||||
if (newPos < GetBuffer().GetRange().GetEnd()+1)
|
||||
{
|
||||
bool processed = false;
|
||||
if (event.CmdDown())
|
||||
{
|
||||
long pos = wxRichTextCtrl::FindNextWordPosition(1);
|
||||
|
Reference in New Issue
Block a user