2
0
Эх сурвалжийг харах

fix compilation for fpc 3.0.4

Johann ELSASS 4 жил өмнө
parent
commit
383c75d866

+ 6 - 2
lazpaintcontrols/lcvectortextshapes.pas

@@ -2396,6 +2396,7 @@ var
   fm: TFontPixelMetric;
   fm: TFontPixelMetric;
   rF: TRectF;
   rF: TRectF;
   penFillId, outlineFillId: String;
   penFillId, outlineFillId: String;
+  a: ArrayOfTFloatWithCSSUnit;
 begin
 begin
   topLeft := Origin - (XAxis - Origin) - (YAxis - Origin);
   topLeft := Origin - (XAxis - Origin) - (YAxis - Origin);
   w := Width*2; h := Height*2;
   w := Width*2; h := Height*2;
@@ -2454,8 +2455,11 @@ begin
       else span.textDirection:= stdLtr;
       else span.textDirection:= stdLtr;
     with rF do
     with rF do
     begin
     begin
-      span.x := [FloatWithCSSUnit(Left/zoom, cuCustom)];
-      span.y := [FloatWithCSSUnit((Top + fm.Baseline)/zoom, cuCustom)];
+      setlength(a, 1);
+      a[0] := FloatWithCSSUnit(Left/zoom, cuCustom);
+      span.x := a;
+      a[0] := FloatWithCSSUnit((Top + fm.Baseline)/zoom, cuCustom);
+      span.y := a;
       span.textLength := FloatWithCSSUnit(Width/zoom, cuCustom);
       span.textLength := FloatWithCSSUnit(Width/zoom, cuCustom);
     end;
     end;
   end;
   end;