]> git.saurik.com Git - wxWidgets.git/commitdiff
Background now drawn within the border instead of beyond the margin
authorJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jan 2012 14:00:29 +0000 (14:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jan 2012 14:00:29 +0000 (14:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index bf5c98681454c53266e2aca30e6494e8401085b2..e00b70b9d0748889fb4a4c562175d9b213c94a35 100644 (file)
@@ -696,7 +696,7 @@ bool wxRichTextObject::DrawBoxAttributes(wxDC& dc, wxRichTextBuffer* buffer, con
 
         dc.SetPen(pen);
         dc.SetBrush(brush);
 
         dc.SetPen(pen);
         dc.SetBrush(brush);
-        dc.DrawRectangle(marginRect);
+        dc.DrawRectangle(borderRect);
     }
 
     if (flags & wxRICHTEXT_DRAW_GUIDELINES)
     }
 
     if (flags & wxRICHTEXT_DRAW_GUIDELINES)