Browse Source
Fixed bad test for TryModifyOrCreate to call InvalidateVisual (#14694)
Co-authored-by: David BRIARD <David.BRIARD@avanquest.com>
pull/14826/head
dbriard
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/Shapes/Shape.cs
|
|
|
@ -254,7 +254,7 @@ namespace Avalonia.Controls.Shapes |
|
|
|
InvalidateMeasure(); |
|
|
|
} |
|
|
|
|
|
|
|
if (!Pen.TryModifyOrCreate(ref _strokePen, Stroke, StrokeThickness, StrokeDashArray, StrokeDashOffset, StrokeLineCap, StrokeJoin)) |
|
|
|
if (Pen.TryModifyOrCreate(ref _strokePen, Stroke, StrokeThickness, StrokeDashArray, StrokeDashOffset, StrokeLineCap, StrokeJoin)) |
|
|
|
{ |
|
|
|
InvalidateVisual(); |
|
|
|
} |
|
|
|
|