summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-08 17:04:12 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-08 17:04:12 +0200
commit42316ce6d340d69e70d19490d7885f374b3e28f8 (patch)
tree2ccecb9b5da7e989eabc9bc3ce02eabc10ba8b4c
parent756039829369f0b5a530264739f19e7794902dff (diff)
downloadfpGUI-42316ce6d340d69e70d19490d7885f374b3e28f8.tar.xz
bug: forgot to check in this change. Item[] -> Items[]
A recent commit forced this change so it is consistent with fpGUI and RTL usage of array property.
-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;