Browse Source

Updated pixilonia

flabbet 2 weeks ago
parent
commit
795a02c98c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Directory.Build.props
  2. 1 1
      src/PixiEditor/Views/Input/BrushPicker.axaml.cs

+ 1 - 1
src/Directory.Build.props

@@ -1,7 +1,7 @@
 <Project>
 <Project>
     <PropertyGroup>
     <PropertyGroup>
         <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Custom.ruleset</CodeAnalysisRuleSet>
         <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Custom.ruleset</CodeAnalysisRuleSet>
-		    <AvaloniaVersion>11.3.9-cibuild0004031-alpha</AvaloniaVersion>
+		    <AvaloniaVersion>11.3.9-cibuild0004032-alpha</AvaloniaVersion>
     </PropertyGroup>
     </PropertyGroup>
   
   
   <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$(Platform)' == 'x64'">
   <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$(Platform)' == 'x64'">

+ 1 - 1
src/PixiEditor/Views/Input/BrushPicker.axaml.cs

@@ -108,7 +108,7 @@ internal partial class BrushPicker : UserControl
     {
     {
         BrushesProperty.Changed.AddClassHandler<BrushPicker>((x, e) =>
         BrushesProperty.Changed.AddClassHandler<BrushPicker>((x, e) =>
         {
         {
-            if (x.SelectedBrush == null && x.Brushes.Count > 0)
+            if (x.SelectedBrush == null && x?.Brushes.Count > 0)
             {
             {
                 x.SelectedBrush = x.Brushes[0];
                 x.SelectedBrush = x.Brushes[0];
             }
             }