Explorar o código

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

git-svn-id: trunk@49625 -
ondrej %!s(int64=4) %!d(string=hai) anos
pai
achega
ade1bad057
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
     Inc(l);
   if L<Count then
-    with BitMaps[0]^ do
+    with BitMaps[L]^ do
       begin
       FBounds.left := x;
       FBounds.top := y + height;