Ticket #10153: Ticket_10153_trunk.patch

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

     
    872872
    873873        long newPos = m_caretPosition;
    874874
    875         DeleteSelectedContent(& newPos);
     875        bool processed = DeleteSelectedContent(& newPos);
    876876
    877877        // Submit range in character positions, which are greater than caret positions,
    878878        // so subtract 1 for deleted character and add 1 for conversion to character position.
    879879        if (newPos > -1)
    880880        {
    881             bool processed = false;
    882881            if (event.CmdDown())
    883882            {
    884883                long pos = wxRichTextCtrl::FindNextWordPosition(-1);
     
    922921
    923922        long newPos = m_caretPosition;
    924923
    925         DeleteSelectedContent(& newPos);
     924        bool processed = DeleteSelectedContent(& newPos);
    926925
    927926        // Submit range in character positions, which are greater than caret positions,
    928927        if (newPos < GetBuffer().GetRange().GetEnd()+1)
    929928        {
    930             bool processed = false;
    931929            if (event.CmdDown())
    932930            {
    933931                long pos = wxRichTextCtrl::FindNextWordPosition(1);