2
0
Эх сурвалжийг харах

Merge pull request #1224 from PixiEditor/fix/null-exception-pixel-circle

Fixed null exception
Krzysztof Krysiński 3 долоо хоног өмнө
parent
commit
af821e7380

+ 1 - 1
src/ChunkyImageLib/Operations/EllipseOperation.cs

@@ -111,7 +111,7 @@ internal class EllipseOperation : IMirroredDrawOperation
         {
         {
             if (Math.Abs(rotation) < 0.001 && strokeWidth > 0)
             if (Math.Abs(rotation) < 0.001 && strokeWidth > 0)
             {
             {
-                RectD rect = (RectD)ellipseFillRect!.Value;
+                RectD rect = (((RectD?)(ellipseFillRect)) ?? (RectD?)location).Value;
                 fillPaintable.Bounds = location;
                 fillPaintable.Bounds = location;
                 if (fillPaintable.AnythingVisible || paint.BlendMode != BlendMode.SrcOver)
                 if (fillPaintable.AnythingVisible || paint.BlendMode != BlendMode.SrcOver)
                 {
                 {