Ticket #10153: Ticket_10153.patch

File Ticket_10153.patch, 1.2 KB (added by catalin, 13 years ago)
  • richtextctrl.cpp

     
    785785
    786786        long newPos = m_caretPosition;
    787787
    788         DeleteSelectedContent(& newPos);
     788        bool processed = DeleteSelectedContent(& newPos);
    789789
    790790        // Submit range in character positions, which are greater than caret positions,
    791791        // so subtract 1 for deleted character and add 1 for conversion to character position.
    792792        if (newPos > -1)
    793793        {
    794             bool processed = false;
    795794            if (event.CmdDown())
    796795            {
    797796                long pos = wxRichTextCtrl::FindNextWordPosition(-1);
     
    835834
    836835        long newPos = m_caretPosition;
    837836
    838         DeleteSelectedContent(& newPos);
     837        bool processed = DeleteSelectedContent(& newPos);
    839838
    840839        // Submit range in character positions, which are greater than caret positions,
    841840        if (newPos < GetBuffer().GetRange().GetEnd()+1)
    842841        {
    843             bool processed = false;
    844842            if (event.CmdDown())
    845843            {
    846844                long pos = wxRichTextCtrl::FindNextWordPosition(1);