浏览代码

fix pen style combobox update

johann 5 年之前
父节点
当前提交
600db3638e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lazpaint/tools/utoolvectorial.pas

+ 1 - 2
lazpaint/tools/utoolvectorial.pas

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