diff options
Diffstat (limited to 'docview')
-rw-r--r-- | docview/components/richtext/RichTextDisplayUnit.pas | 4 |
1 files changed, 2 insertions, 2 deletions
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); |