summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
Diffstat (limited to 'docview')
-rw-r--r--docview/components/richtext/RichTextDisplayUnit.pas2
-rw-r--r--docview/components/richtext/RichTextLayoutUnit.pas4
2 files changed, 3 insertions, 3 deletions
diff --git a/docview/components/richtext/RichTextDisplayUnit.pas b/docview/components/richtext/RichTextDisplayUnit.pas
index 67914de8..8458ec4b 100644
--- a/docview/components/richtext/RichTextDisplayUnit.pas
+++ b/docview/components/richtext/RichTextDisplayUnit.pas
@@ -223,7 +223,7 @@ ProfileEvent('DEBUG: DrawRichTextLine >>>');
end;
if Layout.IsValidBitmapIndex( BitmapIndex ) then
begin
- Bitmap := Layout.Images.Item[BitmapIndex].Image;
+ Bitmap := Layout.Images.Items[BitmapIndex].Image;
BitmapRect.Left := X;
BitmapRect.Top := Start.Y;
diff --git a/docview/components/richtext/RichTextLayoutUnit.pas b/docview/components/richtext/RichTextLayoutUnit.pas
index a9ba7b21..1e593854 100644
--- a/docview/components/richtext/RichTextLayoutUnit.pas
+++ b/docview/components/richtext/RichTextLayoutUnit.pas
@@ -395,7 +395,7 @@ ProfileEvent('DEBUG: TRichTextLayout.Layout >>>>');
Bitmap := nil;
if IsValidBitmapIndex( BitmapIndex ) then
begin
- Bitmap := FImages.Item[BitmapIndex].Image;
+ Bitmap := FImages.Items[BitmapIndex].Image;
CurrentCharWidth := Trunc(Bitmap.Width * FHorizontalImageScale);
WordStarted := true;
BitmapHeight := Trunc(Bitmap.Height * FVerticalImageScale);
@@ -953,7 +953,7 @@ begin
end;
if IsValidBitmapIndex( BitmapIndex ) then
begin
- Bitmap := FImages.Item[BitmapIndex].Image;
+ Bitmap := FImages.Items[BitmapIndex].Image;
Result := Trunc(Bitmap.Width * FHorizontalImageScale);
end;
end;