From 5e13280b42ebeb41c64fdd38610c088203c0bb2c Mon Sep 17 00:00:00 2001 From: Daniil Pavliuchyk Date: Wed, 22 Feb 2023 13:41:19 +0200 Subject: [PATCH] Fix warning --- .../Automation/Peers/RadioButtonAutomationPeer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Automation/Peers/RadioButtonAutomationPeer.cs b/src/Avalonia.Controls/Automation/Peers/RadioButtonAutomationPeer.cs index ea4e37adba..b7b7adfd52 100644 --- a/src/Avalonia.Controls/Automation/Peers/RadioButtonAutomationPeer.cs +++ b/src/Avalonia.Controls/Automation/Peers/RadioButtonAutomationPeer.cs @@ -13,7 +13,7 @@ namespace Avalonia.Controls.Automation.Peers { if (e.Property == RadioButton.IsCheckedProperty) { - RaiseToggleStatePropertyChangedEvent((bool)e.OldValue, (bool)e.NewValue); + RaiseToggleStatePropertyChangedEvent((bool?)e.OldValue, (bool?)e.NewValue); } };