Fix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1840,7 +1840,7 @@ bool wxRichTextParagraphLayoutBox::Draw(wxDC& dc, wxRichTextDrawingContext& cont
|
||||
context.ApplyVirtualAttributes(attr, this);
|
||||
|
||||
int flags = style;
|
||||
if (selection.IsValid() && GetParentContainer() != this && selection.WithinSelection(GetRange().GetStart(), GetParentContainer()))
|
||||
if (selection.IsValid() && GetParentContainer() != this && selection.GetContainer() == this && selection.WithinSelection(GetRange().GetStart(), GetParentContainer()))
|
||||
flags |= wxRICHTEXT_DRAW_SELECTED;
|
||||
|
||||
// Don't draw guidelines if at top level
|
||||
|
Reference in New Issue
Block a user