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:
@@ -1861,8 +1861,12 @@ bool wxRichTextParagraphLayoutBox::Draw(wxDC& dc, wxRichTextDrawingContext& cont
|
|||||||
AdjustAttributes(attr, context);
|
AdjustAttributes(attr, context);
|
||||||
|
|
||||||
int flags = style;
|
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;
|
flags |= wxRICHTEXT_DRAW_SELECTED;
|
||||||
|
}
|
||||||
|
|
||||||
// Don't draw guidelines if at top level
|
// Don't draw guidelines if at top level
|
||||||
int theseFlags = flags;
|
int theseFlags = flags;
|
||||||
|
Reference in New Issue
Block a user