Browse Source

TBAseStringBitmaps.CalculateGlobals: the first <non-empty> bitmap should be used, not the first one

git-svn-id: trunk@49625 -
ondrej 4 years ago
parent
commit
ade1bad057
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-image/src/freetype.pp

+ 1 - 1
packages/fcl-image/src/freetype.pp

@@ -1000,7 +1000,7 @@ begin
   While (l<Count) and (BitMaps[l]^.Width=0) and (BitMaps[l]^.Height=0) do
   While (l<Count) and (BitMaps[l]^.Width=0) and (BitMaps[l]^.Height=0) do
     Inc(l);
     Inc(l);
   if L<Count then
   if L<Count then
-    with BitMaps[0]^ do
+    with BitMaps[L]^ do
       begin
       begin
       FBounds.left := x;
       FBounds.left := x;
       FBounds.top := y + height;
       FBounds.top := y + height;