]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied #13738: Make a wxRichTextImage's box display around the image (dghart)
authorJulian Smart <julian@anthemion.co.uk>
Tue, 13 Dec 2011 19:06:53 +0000 (19:06 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 13 Dec 2011 19:06:53 +0000 (19:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index ad0b3c1047e4b15878e2d4e2f75c7d28a90d2e05..e762e5acfe4182925cf0bae9834fd8f56db336fe 100644 (file)
@@ -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());