From 9cea09caa2b24097c9680b424c43ce44e4116f07 Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Mon, 4 Jul 2022 14:58:25 +0200 Subject: [PATCH 1/2] Fix Intersect missing nullable return type --- src/Avalonia.Base/Platform/IGeometryImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Base/Platform/IGeometryImpl.cs b/src/Avalonia.Base/Platform/IGeometryImpl.cs index c80f8923ef..8760f9ed8a 100644 --- a/src/Avalonia.Base/Platform/IGeometryImpl.cs +++ b/src/Avalonia.Base/Platform/IGeometryImpl.cs @@ -39,7 +39,7 @@ namespace Avalonia.Platform /// /// The other geometry. /// A new representing the intersection. - IGeometryImpl Intersect(IGeometryImpl geometry); + IGeometryImpl? Intersect(IGeometryImpl geometry); /// /// Indicates whether the geometry's stroke contains the specified point. From 14a7ee7e319b7a26d156770fc2b6c0ccb5243a14 Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Mon, 4 Jul 2022 15:07:23 +0200 Subject: [PATCH 2/2] Extend docs --- src/Avalonia.Base/Platform/IGeometryImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Base/Platform/IGeometryImpl.cs b/src/Avalonia.Base/Platform/IGeometryImpl.cs index 8760f9ed8a..5826cfb2ff 100644 --- a/src/Avalonia.Base/Platform/IGeometryImpl.cs +++ b/src/Avalonia.Base/Platform/IGeometryImpl.cs @@ -38,7 +38,7 @@ namespace Avalonia.Platform /// Intersects the geometry with another geometry. /// /// The other geometry. - /// A new representing the intersection. + /// A new representing the intersection or null when the operation failed. IGeometryImpl? Intersect(IGeometryImpl geometry); ///