From: Julian Smart Date: Wed, 4 Jan 2012 14:00:29 +0000 (+0000) Subject: Background now drawn within the border instead of beyond the margin X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/37e7b7838cd369c416b6e505e679a2d3bf72eb93 Background now drawn within the border instead of beyond the margin git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index bf5c986814..e00b70b9d0 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -696,7 +696,7 @@ bool wxRichTextObject::DrawBoxAttributes(wxDC& dc, wxRichTextBuffer* buffer, con dc.SetPen(pen); dc.SetBrush(brush); - dc.DrawRectangle(marginRect); + dc.DrawRectangle(borderRect); } if (flags & wxRICHTEXT_DRAW_GUIDELINES)