浏览代码

no pen style diff if equals

johann 5 年之前
父节点
当前提交
aeebbde2c9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lazpaintcontrols/lcvectororiginal.pas

+ 1 - 0
lazpaintcontrols/lcvectororiginal.pas

@@ -1924,6 +1924,7 @@ end;
 
 procedure TVectorShape.SetPenStyle(AValue: TBGRAPenStyle);
 begin
+  if PenStyleEqual(AValue, Stroker.CustomPenStyle) then exit;
   BeginUpdate(TVectorShapeCommonDiff);
   Stroker.CustomPenStyle := AValue;
   EndUpdate;