Browse Source

fix fill storage

Unknown 6 years ago
parent
commit
9c4e0991da

+ 5 - 2
lazpaintcontrols/lcvectororiginal.pas

@@ -502,6 +502,7 @@ var
   origin, xAxis, yAxis: TPointF;
   origin, xAxis, yAxis: TPointF;
   grad: TBGRALayerGradientOriginal;
   grad: TBGRALayerGradientOriginal;
   repetition: TTextureRepetition;
   repetition: TTextureRepetition;
+  c: TBGRAPixel;
 begin
 begin
   if AValue = nil then
   if AValue = nil then
   begin
   begin
@@ -512,7 +513,9 @@ begin
   obj := AStorage.OpenObject(AObjectName+'-fill');
   obj := AStorage.OpenObject(AObjectName+'-fill');
   if obj = nil then
   if obj = nil then
   begin
   begin
-    AValue.SetSolid(AStorage.Color[AObjectName+'-color']);
+    c := AStorage.Color[AObjectName+'-color'];
+    if c.alpha <> 0 then
+      AValue.SetSolid(c);
     exit;
     exit;
   end;
   end;
   try
   try
@@ -557,7 +560,7 @@ var
   ft: TVectorialFillType;
   ft: TVectorialFillType;
 begin
 begin
   AStorage.RemoveObject(AObjectName+'-fill');
   AStorage.RemoveObject(AObjectName+'-fill');
-  AStorage.RemoveObject(AObjectName+'-color');
+  AStorage.RemoveAttribute(AObjectName+'-color');
   if Assigned(AValue) then
   if Assigned(AValue) then
   begin
   begin
     ft := AValue.FillType;
     ft := AValue.FillType;

BIN
resources/vector/curveangle32.lzp


BIN
resources/vector/curveautodetect32.lzp


BIN
resources/vector/curvemovepoint32.lzp


BIN
resources/vector/curvesmooth32.lzp