From: Julian Smart Date: Tue, 13 Dec 2011 19:06:53 +0000 (+0000) Subject: Applied #13738: Make a wxRichTextImage's box display around the image (dghart) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d86b82bb2c905bdcd7fe0f95c1279d7050df5494 Applied #13738: Make a wxRichTextImage's box display around the image (dghart) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index ad0b3c1047..e762e5acfe 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -9921,7 +9921,7 @@ bool wxRichTextImage::Draw(wxDC& dc, const wxRichTextRange& range, const wxRichT if (!LoadImageCache(dc)) return false; - DrawBoxAttributes(dc, GetBuffer(), GetAttributes(), wxRect(GetPosition(), GetCachedSize())); + DrawBoxAttributes(dc, GetBuffer(), GetAttributes(), wxRect(rect.GetPosition(), GetCachedSize())); #if 0 int y = rect.y + (rect.height - m_imageCache.GetHeight());