Browse Source

no pen style diff if equals

johann 5 years ago
parent
commit
aeebbde2c9
1 changed files with 1 additions and 0 deletions
  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;