Selaa lähdekoodia

fix pen style combobox update

johann 5 vuotta sitten
vanhempi
commit
600db3638e
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      lazpaint/tools/utoolvectorial.pas

+ 1 - 2
lazpaint/tools/utoolvectorial.pas

@@ -407,7 +407,6 @@ end;
 
 
 procedure TEditShapeTool.UpdateToolManagerFromShape(AShape: TVectorShape);
 procedure TEditShapeTool.UpdateToolManagerFromShape(AShape: TVectorShape);
 var
 var
-  ps: TPenStyle;
   opt: TShapeOptions;
   opt: TShapeOptions;
   zoom: single;
   zoom: single;
   m: TAffineMatrix;
   m: TAffineMatrix;
@@ -435,7 +434,7 @@ begin
       else
       else
       begin
       begin
         include(opt,toDrawShape);
         include(opt,toDrawShape);
-        Manager.PenStyle := ps;
+        Manager.PenStyle := BGRAToPenStyle(AShape.PenStyle);
       end;
       end;
   end;
   end;
   if doDraw then
   if doDraw then