From 4be1bb4331ea4818431a2e1465fd35aa8c23fe1e Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 12 Aug 2010 00:02:36 +0200 Subject: richview: fixed position of bitmap in context. The positioning of images still used the OS/2 co-ordinate system. This is now fixed. --- docview/components/richtext/RichTextDisplayUnit.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docview') diff --git a/docview/components/richtext/RichTextDisplayUnit.pas b/docview/components/richtext/RichTextDisplayUnit.pas index c3f15156..6009e7e2 100644 --- a/docview/components/richtext/RichTextDisplayUnit.pas +++ b/docview/components/richtext/RichTextDisplayUnit.pas @@ -224,11 +224,11 @@ ProfileEvent('DEBUG: DrawRichTextLine >>>'); Bitmap := Layout.Images.Item[BitmapIndex].Image; BitmapRect.Left := X div FontWidthPrecisionFactor; - BitmapRect.Bottom := Start.Y; + BitmapRect.Top := Start.Y; BitmapRect.Right := Trunc(BitmapRect.Left + Bitmap.Width * Layout.HorizontalImageScale); - BitmapRect.Top := Trunc(BitmapRect.Bottom + BitmapRect.Bottom := Trunc(BitmapRect.Top + Bitmap.Height * Layout.VerticalImageScale); -- cgit v1.2.3-70-g09d2