Fix selection drawing for table cells

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2013-10-21 13:12:16 +00:00
parent 10824e3e26
commit 6539f8630e

View File

@ -1861,8 +1861,12 @@ bool wxRichTextParagraphLayoutBox::Draw(wxDC& dc, wxRichTextDrawingContext& cont
AdjustAttributes(attr, context);
int flags = style;
if (selection.IsValid() && GetParentContainer() != this && selection.GetContainer() == this && selection.WithinSelection(GetRange().GetStart(), GetParentContainer()))
if (selection.IsValid() &&
((GetParentContainer() != this && selection.GetContainer() == this && selection.WithinSelection(GetRange().GetStart(), GetParentContainer())) ||
(selection.WithinSelection(GetRange().GetStart(), this))))
{
flags |= wxRICHTEXT_DRAW_SELECTED;
}
// Don't draw guidelines if at top level
int theseFlags = flags;