Opened 7 months ago

Closed 7 months ago

#15520 closed defect (fixed)

wxRichTextCtrl: Drawing the selection doesn't respect its container

Reported by: dghart Owned by:
Priority: normal Milestone: 3.0.0
Component: wxRichText Version: stable-latest
Keywords: wxRichTextParagraphLayoutBox::Draw selection Cc:
Blocked By: Blocking:
Patch: yes

Description

In wxRichTextCtrl, drawing selected text is done in different colours to unselected; for me, it's white on blue. However wxRichTextParagraphLayoutBox::Draw doesn't adequately restrict this. As can be seen in the diff to the richtext sample and the attached screenshot, if position n is selected, cell n of a following table will also be selected (you may have to scroll to force a refresh before it's visible).

This is fixed by richtextbuffer.patch.

Attachments (3)

sample.diff download (1.5 KB) - added by dghart 7 months ago.
Screenshot.png download (19.3 KB) - added by dghart 7 months ago.
richtextbuffer.patch download (763 bytes) - added by dghart 7 months ago.

Download all attachments as: .zip

Change History (4)

Changed 7 months ago by dghart

Changed 7 months ago by dghart

Changed 7 months ago by dghart

comment:1 Changed 7 months ago by juliansmart

  • Resolution set to fixed
  • Status changed from new to closed

Thank you, now applied.

Note: See TracTickets for help on using tickets.